Announcement

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

    ComboBoxItem unable to fetch data when SectionStackSection is hidden

    Hi,

    We are using SmartGWT version 2.5.

    Our web app has a SmartGWT SectionStackSection which contains a DynamicForm. The form contains some form items including ComboBoxItem.

    The SectionStackSection is initially hidden by calling:
    SectionStackSection.setExpanded(false);
    SectionStackSection.setHidden(true);

    And then we populate the DynamicForm by:
    dynamicForm.editRecord(record);


    All form items insides the DynamicForm is populated with record data, EXCEPT all the ComboBoxItem (ComboBoxItem has set the OptionDataSource, which is used to populate its Value & Display fields).

    We suspect that, since the SectionStackSection is hidden, the ComboBoxItem will not fetch the data from DataSource; thus, dynamicForm.editRecord cannot set value to it.

    Thanks and kind regards,
    Nelson

    #2
    Hi,

    Kindly see if there is any one having some idea on the captioned.

    By default, we understand that ComboBoxItem will fetch data automatically.

    However, when it is not visible (due to the SectionStackSection containing it is hidden), ComboBoxItem cannot fetch data automatically.

    Thus, when we call dynamicForm.editRecord(), ComboBoxItem cannot be populated with the record value.

    Thanks and kind regards,
    Nelson

    Comment

    Working...
    X