Wijmo UI for the Web
filterOperatorsListShowing Event
The jQuery.Event object.
The data with this event.
The filterOperatorsListShowing event handler is a function that is called before the filter drop-down list is shown. You can use this event to customize the list of filter operators for your users.
Syntax
Javascript (Usage) 
var instance; // Type: options
instance.filterOperatorsListShowing = function(e, args) { };
Javascript (Specification) 
filterOperatorsListShowing = function ( 
   e : Object,
   args : IFilterOperatorsListShowingEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Limit the filters that will be shown to the "Equals" filter operator
$("#element").wijgrid({
    filterOperatorsListShowing: function (e, args) {
        args.operators = $.grep(args.operators, function(op) {
            return op.name === "Equals" || op.name === "NoFilter";
        }
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ filterOperatorsListShowing: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridfilteroperatorslistshowing", function (e, args) { // some code here });

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.