wijmo.data Namespace > IShape Interface : filter Field |
Default value: null
Sets or returns a variant that contains a filter for the data in a recordset. The filter allows you to get records that satisfy a specified criterion.
Javascript (Usage) | |
---|---|
var instance; // Type: wijmo.data.IShape; var value; // Type: any value = instance.filter; |
Javascript (Specification) | |
---|---|
|
$(document).ready(function () { var productView = new wijmo.data.ArrayDataView(sourceData()); $("#demo-grid").wijgrid({ data: productView, });
$("#clearFilter").click(function () { productView.filter(null); }); $("#filterBeverages").click(function () { productView.filter({ Category_ID: 1 }); });