DHTMLX Docs & Samples Explorer

Index
dhtmlxdataview
API Methods

## filter (key, value)

Required library edition:

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");