DHTMLX Docs & Samples Explorer

filter (key, value)

Required library edition: This method works with any edition of DHTMLX library

Required library file: dhtmlxdataview.js

Filters dataview by provided parameters

  • key - name of property, or custom filtering method
  • value - value which will be used for filtering
//show all items where Publisher == "Test"
	view.filter("Publisher","Test");
//show all items where Publisher starts from "Test"
    view.filter(function(obj,value){
    	if (obj.Publisher.indexOf(value)==0) return true;
    	return false;
    },"Test");