What is the easiest way to tell if a give node is a root node or not on the client side. With the classic RadControls, I did this by using
if (node.Parent) { ...
This would return nothing if node was a root node, and a reference to the parent node if not. With the Prometheus controls, however, if node is a root node, node.get_parent() returns a reference to the treeview itself, which means I need to convert code with this logic. I'm just looking for the simplest way to do this.
Thanks.
if (node.Parent) { ...
This would return nothing if node was a root node, and a reference to the parent node if not. With the Prometheus controls, however, if node is a root node, node.get_parent() returns a reference to the treeview itself, which means I need to convert code with this logic. I'm just looking for the simplest way to do this.
Thanks.