Categories | Question details Back To List | ||
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 You can use grid.showRow(id) http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:api_method_dhtmlxgridobject_showrow |