Wijmo UI for the Web
filterValue Option

A value set for filtering.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").c1field("option", "filterValue");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").c1field("option", "filterValue", newValue);
        
});
Javascript (Specification) 
var filterValue : any;
Example
$("#element").wijgrid({ columns: [{ dataType: "number", filterOperator: "Equals", filterValue: 0 }]});
Remarks
Full option value is: [filterValue1, ..., filterValueN] where each item is a filter value for the corresponding filter operator. Example: filterValue: [0, "a", "b"] Built-in filter operators support array of values as an argument. Example: filterOperator: ["Equals", "BeginsWith"] filterValue: [[0, 1, 2], "a"] As a result of filtering all the records having 0, 1, 2, or starting with "a" will be fetched. Shorthand notation allows omitting square brackets, the following statements are equivalent: filterValue: ["a"] filterValue: [["a"]] filterValue: "a" Note: wijgrid built-in filter editors do not support multiple filter values.
Browser Compatibility
7
5
5

See Also

Reference

options type
c1field jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.