redefine this method in your code to define how grid row values should be used in tree
treeObj | object | object of tree |
treeNodeId | string|number | id of the node created in tree |
gridRowId | string|number | id of the grid row |
Available only in PRO Edition
myTreeGrid.gridToTreeElement = function(tree,treeID,gridID){
return this.cells(gridId,0).getValue(); //take data from 1st column as a tree value
};
using input parameters you can change id of a new tree node, set label, set userdata blocks, etc.
Back to top