Check documentation for the latest version of dhtmlxSuite findCell DHTMLX Docs

findCell

finds cell in treegrid by value

void findCell(string value,number c_ind,boolean first,boolean compare);

Parameters

valuestringsearch string
c_indnumberindex of the column to search in (optional, if not specified, search everywhere)
firstbooleanfind only the first occurence (optional, false by default)
comparebooleanfind only exact matches of the entered value, false by default

Available only in PRO Edition

Example

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

Back to top