ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / filterOperatorsListShowing Event
The jQuery.Event object.
The data with this event.
In This Topic
    filterOperatorsListShowing Event
    In This Topic
    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
    var options; // Type:  jQuery.wijmo.c1gridview.options
    
          // Create a new c1gridview widget
          $(".selector").c1gridview(options);
    
          // Get a previously created c1gridview widget instance
          var widgetInstance; // Type:  jQuery.wijmo.c1gridview
          widgetInstance = $(".selector").data("wijmo-c1gridview");
    
          // Set filterOperatorsListShowing event handler function
    widgetInstance.option("filterOperatorsListShowing", function (e, args) { } );
    filterOperatorsListShowing = function ( 
       e : Object,
       args : wijmo.grid.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