Wijmo UI for the Web
filtering Event
The jQuery.Event object.
The data with this event.
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
Javascript (Usage) 
var instance; // Type: options
instance.filtering = function(e, args) { };
Javascript (Specification) 
filtering = function ( 
   e : Object,
   args : IFilteringEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
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

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.