Announcement

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

    Unable to redraw SmartGWT components when using Internet Explorer

    Hi,

    We are using SmartGWT version 2.5; and we are testing our web app on 2 browsers:
    - Internet Explorer 8
    - Firefox 3.6

    Our web app layout contains SmartGWT TabSet and Tab(s).

    In each tab, it contains SectionStack and SectionStackSection(s).

    In each SectionStackSection, our data is displayed in DynamicForm or ListGrid.

    The problem is, when we hide + collapse a SectionStackSection, and show + expand another SectionStackSection, that section is in black color.

    It seems that DynamicForm or ListGrid (or maybe the whole SectionStackSection) is unable to redraw itself, since when we tried to minimize and maximum IE, some components become visible again.

    This display issue happens with IE only, but no such issue when using Firefox.

    [Relevant SmartGWT codes]

    We have 3 sections:

    // Section containing a DynamicForm for searching
    SectionStackSection sectionSearch;

    // Section containing a ListGrid for showing search result
    SectionStackSection sectionResult;

    // Section being shown when double click on a ListGrid record in sectionResult
    SectionStackSection sectionDetail;


    When double click on a ListGrid record in sectionResult:

    // collapse and hide Search section
    sectionSearch.setExpanded(false);
    sectionSearch.setHidden(true);

    // collapse and hide Result section
    sectionResult.setExpanded(false);
    sectionResult.setHidden(true);

    // expand and show Detail section
    sectionDetail.setExpanded(true);
    sectionDetail.setHidden(false);


    We have a "Back" button on Search section. When click on it, it will show the Search and Result sections again...but now Search and/or Result sections become black in color...

    // expand and show Search section
    sectionSearch.setExpanded(true);
    sectionSearch.setHidden(false);

    // expand and show Result section
    sectionResult.setExpanded(true);
    sectionResult.setHidden(false);

    // collapse and hide Detail section
    sectionDetail.setExpanded(false);
    sectionDetail.setHidden(true);


    Thanks and kind regards,
    Nelson

    #2
    Hi,

    Kindly see if there is anyone who is having similar issue with SmartGWT + Internet Explorer.

    We are still unable to resolve the issue when we run SmartGWT application in Internet Explorer.

    Some SmartGWT components are black out (guess they are unable to redraw automatically) when we hide and un-hide SectionStackSections.

    Thanks and kind regards,
    Nelson

    Comment


      #3
      Hey Nelson,

      try not to use the setHidden method. When a SectionStackSection get collapsed, the content is automaticcaly hidden.

      Let me know if it works.

      Regards

      Comment


        #4
        Hello jmichelgarcia,

        Thanks for your suggestion.

        Comment out the setHidden() code while keep only the setExpanded(false), things work fine in IE now!

        Many thanks.

        Thanks and kind regards,
        Nelson

        Comment


          #5
          Glad I could help.

          Regards.

          Comment

          Working...
          X