Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 23, 2008 00:07
open dhtmlx forum
How to get the selected Row values in the Tree

Answer posted by Support on Jul 23, 2008 03:12
The selected element id can be get as
    dhtmlxTree
       var id = tree.getSelectedItemId();
    dhtmlxGrid
       var id = grid.getSelectedRowId();

The value of element can be get as
    dhtmlxtree
        var val = tree.getItemText(id);
    dhtmlxgrid
       var val = grid.cells(id,index).getValue(); // index - index of column