Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yvan on Oct 31, 2008 05:23
open dhtmlx forum
DHTMLXTree: findItem(...)

I know we have a focus item method which is free, could you please tell me how to simulate the findItem myself based on focus?
I actually need a kind of iterator for the (sub)tree, so that I might compare the text myself while searching...

Or maybe there is an another easier way!
Answer posted by Support on Oct 31, 2008 07:31
You can get array of IDs, of each item in grid as 
   var ids = tree.getAllSubItems(0).split(",")

and loop through it, using getItemText to get labels of items.