Announcement

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

    Programmatically controlling the group open/close state in a list grid?

    Does ListGrid provide access to underlying group nodes (when data is grouped) and their state (whether open or close) and can we change the state of a group programmatically?

    I have a use case where I am grouping the data by a field and showing all the groups closed by default on page load. Later filtering (client) data in this grid by some controls outside the grid. At this point, the grid does not retain user's already opened grouped state and falls back to groupStartOpen setting. If I can access the group state then I can get the state prior to applying filter and then open those groups (if still present) post filter.

    #2
    Use getGroupTree() to get access to the tree of grouped records.

    Comment


      #3
      I don't see any such method on ListGrid.

      Comment


        #4
        https://www.smartclient.com/smartgwt...getGroupTree--

        You can't possibly be using a version old enough to not ha w this API, so, look again?

        Comment


          #5
          Should have posted under smartclient. I don't see any method there though

          Comment


            #6
            There is no getter required for SmartClient, it's just listGrid.groupTree (and is documented as such).

            Comment


              #7
              Thank you!

              Comment

              Working...
              X