Wijmo UI for the Web
filtering Field
wijmo.grid Namespace > IWijgridOptions Interface : filtering Field

The filtering event handler is a function that is called before the filtering operation is started. For example, you can use this event to change a filtering condition before a filter will be applied to the data. This event is cancellable.

Syntax
var instance; // Type: wijmo.grid.IWijgridOptions;
var value; // Type: any
value = instance.filtering;
var filtering : any;
Example
// Prevents filtering by negative values
$("#element").wijgrid({
    filtering: function (e, args) {
        if (args.column.dataKey == "Price" && args.value < 0) {
            args.value = 0;
        }
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ filtering: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridfiltering", function (e, args) { // some code here });
See Also

Reference

IWijgridOptions Interface