Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by G R on Jan 14, 2010 13:24
open dhtmlx forum
Setting focus when you add a node- DHTMLXGridTree

Hi
How do we set focus to a tree grid node, ni dhtmlxtree we have tree.setFocus(rowid), my requirement here is
I am adding a node in the grid tree, once i add that node, i need to set focus on that node, or highlight it.

Sample code
=======
grid.enableMarkedCells("1")

gridtree.mark(rowid,"0","0");

The thing is when i click on an highlighted item and select "Add new node " in my context menu", i just cant get the selected rowid
for the selected item, not sure why, is there another way to set focus on a selected node in a grid tree, Please help!!



Answer posted by Stanislav (support) on Jan 15, 2010 02:48