Announcement

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

    ListGrid isExpandedRecord(ListGridRecord) method missing

    Hi,

    I use the "TreeGrid" and I have the "Tree" inside of it.
    I need to get the information, if the "TreeNode"-s are expanded or not.
    The "ListGrid" provides methods as "expandRecord(ListGridRecord)" and "collapseRecord(ListGridRecord)".
    But there's no method to get the expand status (like isExpandedRecord(ListGridRecord)).

    Can anybody help how to get the expand status of a record?
    Thanks.

    #2
    I am also looking for a way to determine the expand status of a ListGridRecord. Does anybody have a good idea? Thank you.

    Comment


      #3
      I've already found it:
      Code:
      com.smartgwt.client.widgets.tree.Tree.isOpen(TreeNode node)

      Comment


        #4
        Okay, and for ListGrids you can use

        Code:
        public Canvas getCurrentExpansionComponent(ListGridRecord record)
        and check whether the return value is null (record is currently not expanded) or not (record is expanded).

        Comment

        Working...
        X