onBeforeFilter

called before data are filtered

void onBeforeFilter(string id,string value,object config){ ... };

Parameters

idstringthe column ID
valuestringthe value to be filtered by
configobjectthe filter configuration

Example

dtable.attachEvent("onBeforeFilter", function(id, value, config){
    //ignores short filter-strings during filtering
    if (value.length < 3) return false;
})

Details

The event relates only to built-in Datatable, Treetable, and Excelviewer filters. To catch the moment when view data are filtered by the API, handle the onBeforeFilter event of its Datastore.

Returning false within an event handler will prevent data filtering.

If you have multiple filters assigned, the event will fire for all of them.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of javascript datagrid product.