Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Section Stack to show dynamic data

    Hi ,

    I am using SmartClient Version: v11.1p_2017-07-09/PowerEdition Deployment (built 2017-07-09)

    I have a SectionStack with muliple SectionStackSection. On expanding and section header, i need to load dynamic data. I have code as below:
    reportSectionStack = new SectionStack();
    reportSectionStack.addSectionHeaderClickHandler(new SectionHeaderClickHandler() {

    @Override
    public void onSectionHeaderClick(SectionHeaderClickEvent event) {
    if (event.getSection().getItems().length == 0) {
    event.getSection().addItem(new ReportParameterFormView());
    }
    }
    });

    This works fine.
    But if i click two headers one after other, even before the response for first section is set, the content of the first section also gets added to the section expanded later.
    How can i set a seperate handler for each sectionHeader?

    Regards,
    Swati
Working...
X