Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul on May 23, 2007 00:09
open dhtmlx forum
FindCell

I need a function to search in all rows of a treegrid, even if its nodes are closed. I try with findCell() method but it just search in open nodes... is there a function like findCell that search the information in the whole treegrid??
Answer posted on May 23, 2007 19:06
Problem confirmed and fixed ( dhtmlxGrid 1.3 ) , the updated code will be available as part of next version
If you need fix ASAP just locate next code in dhtmlxGrid

      for (var j=0; j<this.rowsCol.length; j++){
         z.cell=this.rowsCol[j].childNodes[i];
         var val=z.getValue();

         if ((val||"").toString().indexOf(value)!=-1) res[res.length]=[j,i];
      }

and replace it with

      this.forEachRow(function(id){
         z.cell=this.rowsAr[id].childNodes[i];
         var val=z.getValue();

         if ((val||"").toString().indexOf(value)!=-1) res[res.length]=[id,i];
      });
Answer posted by radyno (Support) on Dec 11, 2014 14:18

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking javascript tabbed navigation and simple java script.