DHTMLX Docs & Samples Explorer

collectValues(column)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid_filter.js

get all possible values in column

  • column - {number} zero based index of column

Returns {array} array of all possible values in column

   //collect possible values in the 2nd column
   var values=mygrid.collectValues(1);

Please make sure that all rows are loaded before calling this method.

See also: filterBy, makeFilter, refreshFilters, getFilterElement