DHTMLX Docs & Samples Explorer

makeFilter(id,column,preserve)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid_filter.js

create a filter from any input element (text filter), select (dropdown) or DIV (combobox based on dhtmlxCombo)

  • id - {string|object} input id or input html object
  • column - {number} index of column
  • preserve - {true|false} filter current state or initial one (optional, false by default)
   //minimal parameters set
   mygrid.makeFilter("some_el",0); 
   //maximal parameters set
   mygrid.makeFilter("some_el",0,true);

See also: makeSearch, filterBy