getFirstChildId
gets the ID of the first child of the specified branch
string getFirstChildId(id id);
| id | id | the parent (branch) ID |
| string | the ID of the first child of the specified branch. If there aren't any, returns null |
Example
var firstChild = tree.data.getFirstChildId(tree.getSelectedId());
// returns the ID of the first child of selected item
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.