5 Answers, 1 is accepted
0
Manoj
Top achievements
Rank 1
answered on 22 Dec 2008, 01:26 PM
HI,
Can anybody help me out .
With Thanks & Regards
Manoj
Can anybody help me out .
With Thanks & Regards
Manoj
0
Hi Manoj,
You should use e.Node.ParentNode.ParentNode.ParentNode.Value to get the value of the root node.
Greetings,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You should use e.Node.ParentNode.ParentNode.ParentNode.Value to get the value of the root node.
Greetings,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Manoj
Top achievements
Rank 1
answered on 22 Dec 2008, 03:08 PM
Hi Yana,
I have 7 level in the tree view . While I will be expanding the level seven node I have to pass the level 6 , level 5 , level 4 , level 3, level 2 , level 1 and level 0 value to my stored procedure . If I will be expanding the level 5 then I have to pass the level 4 , level 3, level 2 , level 1 and level 0 value to my stored procedure . I mean to say that level is not static , it's dynamic . Tell me whether it will work or not ? Is there any way to get the value of previous level data for the currenty level ?
With Thanks & Regards
Manoj
I have 7 level in the tree view . While I will be expanding the level seven node I have to pass the level 6 , level 5 , level 4 , level 3, level 2 , level 1 and level 0 value to my stored procedure . If I will be expanding the level 5 then I have to pass the level 4 , level 3, level 2 , level 1 and level 0 value to my stored procedure . I mean to say that level is not static , it's dynamic . Tell me whether it will work or not ? Is there any way to get the value of previous level data for the currenty level ?
With Thanks & Regards
Manoj
0
Hello Manoj,
You can use e.Node.Level property to find whether you're on level 5 or level 7, also you can determine how many times to call ParentNode to find the root node:
Best wishes,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You can use e.Node.Level property to find whether you're on level 5 or level 7, also you can determine how many times to call ParentNode to find the root node:
RadTreeNode node = e.Node; |
while (node.Level > 0) |
node = node.ParentNode; |
Best wishes,
Yana
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Manoj
Top achievements
Rank 1
answered on 23 Dec 2008, 03:32 PM
Hi Yana,
Thanks , it's work fine.
With Thanks & Regards
Manoj
Thanks , it's work fine.
With Thanks & Regards
Manoj