Check documentation for the latest version of dhtmlxSuite onBeforeSort DHTMLX Docs

onBeforeSort

invokes before a dataset is sorted

void onBeforeSort(string by,string dir,string as);
bystringa template of sort-by field
dirstringa direction of sorting
asstringa type of sorting

Example

myChart.attachEvent("onBeforeSort", function (by, dir, as){
//any custom logic here
});

Details

Event can be blocked, returning false will prevent normal reaction of component.

Event name is case insensitive.

Back to top