Announcement

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

    ListGrid Header Context Menu - Clear Sort

    Smart GWT 2.5 Release

    I have a ListGrid tied to RESTful data source. I have enabled single column sorting for the grid. I would like to receive an event when the user selects the Clear Sort menu item from the header context menu so that I can trigger a reload of the data source.

    I reviewed the ListGrid.getHeaderContextMenuItems() method but was not sure it was appropriate.

    What would you recommend?

    Thank you.

    #2
    You can overide the getHeaderContextMenuItems() function and replace the "Clear Sort" menu item with your own menu item that does this additional fetch.

    Comment

    Working...
    X