Wijmo UI for the Web
filterOperatorsListShowing Event
wijmo.grid.wijgrid Namespace > options type : 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
$(function () {
    // Set filterOperatorsListShowing event handler function
    $(".selector").wijgrid({
        filterOperatorsListShowing : function (e, args) {
     
        }
    });
});
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
wijgrid jQuery Widget