Categories | Question details Back To List | ||
DhtmlxGrid | Callback on Sorting H, I am sorting columns in DhtmlxGrid . There is one requirement in which I have to pass some parameter to the next page that defines on which column sorting has been applied . Does dhtmlxgrid provides any callback whenever sorting is applied on the grid. Thanks Answer posted by dhxSupport on Aug 24, 2009 02:39 You can use "onBeforeSorting" event (available in PRO version only). This event occurs before starting data sorting. onBeforeSorting event passes the following parameters: column index sorting type (“str”,”int”,”date”) direction of sorting (“asc”,”des”) Event is blockable (if custom code, attached to event, returns value different from true - sorting operation will be blocked) grid.attachEvent("onBeforeSorting", function(ind,type,direction){ //any custom logic here return false; }); |