How to distinguish whether node.get_parent returns the parent node or the parent treeview?
|
Article relates to
|
RadTreeView Prometheus
|
|
Created by
|
Nick
|
|
Last modified
|
01 February, 2008
|
|
Last modified by
|
Nick
|
How to destinguish whether node.get_parent returns the parent node or the parent treeview?
Use the following code to check whether a node or a treeview instance is returned by the
get_parent() method:
| if (node.get_parent() == node.get_treeView()) // node is root node and get_parent() returns the parent treeview |
or test the node level for zero:
| if (node.get_level() == 0) //node is root node |
Comments
There are no comments yet.
If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!
Please
Sign In
to rate this article.