onBeforeFilter

fires before component filtering

boolean onBeforeFilter(string|number columnId,string value){ ... };

Parameters

columnIdstring|numberthe ID of the column for filtering
valuestringthe filter value

Returns

booleanreturning false will prevent filtering

Example

view.data.attachEvent("onBeforeFilter", function(column, value){
    if (value == 0) return false;
 
    webix.message("Filtering...");
    return true;
});

Details

Returning false from the event handler will block further processing, and the data will not be filtered.

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

See also
Back to top