filters DataView by the provided parameters
key | string|function | name of the property or custom filtering method |
value | string | the value which will be used for filtering |
//show all items where Publisher == "Test"
myDataView.filter("#Publisher#","Test");
//show all items where Publisher starts from "Test"
myDataView.filter(function(obj,value){
if (obj.Publisher.indexOf(value)==0) return true;
return false;
},"Test");
Back to top