Check documentation for the latest version of dhtmlxSuite filter DHTMLX Docs

filter

filters DataView by the provided parameters

void filter(string|function key,string value);
keystring|functionname of the property or custom filtering method
valuestringthe value which will be used for filtering

Example

//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