onBeforeSort

invokes before a dataset is sorted

void onBeforeSort(string by,string dir,string as){ ... };

Parameters

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