DHTMLX Docs & Samples Explorer

findCell(value, c_ind, first)

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

find cell in grid by value

  • value - {string} search string
  • c_ind - {number} index of column to search in (optional, if not specified, then search everywhere)
  • first - {true|fase} find only first occurence (optional, false by default)

Returns array each member of which contains array with row ID and cell index

   //search "alf" value at the all grid cells
   var searchResult=mygrid.findCell("alf");
   //search "alf" value at the second column, find only first occurence
   var searchResult=mygrid.findCell("alf",1,true);

See also: filterBy, filterByAll, makeFilter