Announcement

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

    ListGrid.setGroupStartOpen() How does the array parameter work?

    I used to use this function to pass an Array of Strings for which groups I wanted to start open or closed as I have 8 different groups. 3 of which are commonly used and I had them starting open and the 5 rarely used groups started closed.

    Now setGroupStartOpen() can take an array of GroupStartOpen objects which is an enum with ALL, FIRST, and NONE. How is this array supposed to work? Why would I want to pass it {FIRST, ALL, FIRST, NONE} or something and what would this actually do?

    #2
    I think that is actually a bug, looking at the code it searches the tree based on the values you passed and if the value matches then it opens the folder, but it is an Enum so you can't specify anything other then the 3 values.

    Basically you can do a workaround though, getGroupTree() and use find() based on "groupValue" to find the nodes which represent the groupNodes and then openFolder() on those.

    Comment


      #3
      Thank you for spotting this. A fix has been submitted and should show up on the SmartGWT 5/25 nightly build.

      Comment

      Working...
      X