Documentation

onBeforeFilter

fires before datatable filtering

boolean onBeforeFilter(id columnId,string value, [function compare] ){ ... };

Parameters

columnIdidid of column for filtering
valuestringfilter string
comparefunctioncustom comparation function

Returns

booleanreturning false will prevent filtering

Example

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

Details

If you have multiple filters assigned - event will fire for all of them

See also

Back to top