Listen to events on pqgridf

We can subscribe to pqgrid events with help of either inline options or by using on method on pqgrid instance also mentioned in event handling section of pqgrid tutorial.

In this example we use sort sub-option of pqgrid for event binding. Click on any header cell of grid to see it in action.