redefine this method in your code to specify how tree node values should be used in the grid
treeObj | object | a tree object |
treeNodeId | string|number | the id of a node created in the tree |
gridRowId | string|number | the id of a grid's row |
Available only in PRO Edition
grid.treeToGridElement = function(tree,treeID,gridID){
var z=[treeObj.getItemText(treeID)]; //set tree text as a value of 1st column in grid
return z;
}
by using the input parameters you can change the id of a new row, values for cells, userdata blocks, etc.
Back to top