How to intercept the ListGrid header's click
I have implemented the widget based on ListGrid that takes page by page the data from the datasource (transformRequest & transformResponse are involved in parameters parsing). What I have found is the sorting works only for the "client side" data set. I mean when I have pretty short set of the data that fits the ListGrid the sorting works fine inside the grid. In case the data set is big enough and ListGrid decides to make the call to data source there is no any parameters according to sorting of the columns.
I found that I can set a such parameter via setting the Criteria for the ListGrid and can get the current sorting settings via grid.getSort().
The question is how can I intercept the right button click event on ListGrid header which opens the context menu and to catch the click on the sorting items.