Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by zu jianing on Mar 08, 2009 22:52
open dhtmlx forum
grid search in one page

hello

i used paging in a grid, bug i got a needs to search one cell's contents in just one page, how can i do this?

thanks!
Answer posted by Support on Mar 09, 2009 04:01
You can 

a) use findCell functionality and check results with custom code to filter ones which related to page in question
or
b) use manual looping as
var stat = mygrid.getStateOfView();
for (var i=stat[1]; i<stat[2]; i++)
   if ( grid.cells2(i,index).getValue()=="some" ) do_something();