Welcome Guest Search | Active Topics | Sign In | Register

TreeView Last Node Options
d
Posted: Friday, April 15, 2011 2:44:48 AM
Rank: Newbie
Groups: Member

Joined: 4/13/2011
Posts: 3
Is there the possibility via JavaScript to know if a node is the last node in hierarky?
For example:

-a node.isLast() -> false
--aa node.isLast() -> false
--aa node.isLast() -> false
----aaa node.isLast() -> true
----aaa node.isLast() -> true
-b node.isLast() -> false
--bb node.isLast() -> true


Is there a function like this?

Thankyou in advance
eo_support
Posted: Friday, April 15, 2011 9:44:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No. You will have to check the parent node's children node count and the node's index to determine whether the node is the last node.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.