Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Seetharaman Srinivasan on Aug 05, 2008 04:20
open dhtmlx forum
DHTMLXGRID makeSearch

How do I use makeSearch method to highlight the the row which has particular value in a specific column? Can I have an example as how I use this method makeSearch?
Answer posted by Support on Aug 05, 2008 07:54

You can use  grid.findCell

var ids=grid.findCell("value"); //find row which contains "value"
if (ids.length) grid.selectRowById(ids[0][0]);

var ids=grid.findCell("value",2); //find row which contains "value" in 3rd column
if (ids.length) grid.selectRowById(ids[0][0]);

finfCell returns an array of id|index values for each found occurence