Check documentation for the latest version of dhtmlxSuite filter DHTMLX Docs

filter

filters List by the provided parameters

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

Example

//show all items where Publisher == "Test"
myList.filter("#Publisher#","Test");
//show all items where Publisher starts from "Test"
myList.filter(function(obj,value){
    if (obj.Publisher.indexOf(value)==0) return true;
    return false;
},"Test");

Back to top