Announcement

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

    How to interpret a checkbox state change (TreeGrid tri-state checkbox)

    Hi,

    I found this very nice feature that creates a tri-state checkbox tree here http://www.smartclient.com/smartgwt/...#tree_checkbox

    But how do i catch and interpret the state change event?

    The SelectionChangedHandler is triggered but i cant get any usefull information from it.

    Code:
    treeGrid.addSelectionChangedHandler(new SelectionChangedHandler() {
             public void onSelectionChanged(SelectionEvent event) {
                //I want to know what item that changed state 
                //and what the new state is but i dont know how.
             }
          });
    Best Regards,
    Jolie

    #2
    Should i be doing something else to catch these kind of events?

    Is this a feature i can only access with the Enterprise version? Or does the Enterprise version make accessing this easier in some way?

    Comment


      #3
      The Event gives you the Record which can be used with ListGrid.isPartiallySelected() and related APIs.

      Comment

      Working...
      X