4 Answers, 1 is accepted
0
Hi Ricky,
You can use the RadTreeNode.FullPath property to the get the path of a Node at the server.
I hope this helps.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can use the RadTreeNode.FullPath property to the get the path of a Node at the server.
I hope this helps.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Ricky
Top achievements
Rank 1
answered on 30 Jun 2008, 03:07 AM
Thank you.
Ricky.
Ricky.
0
Ricky
Top achievements
Rank 1
answered on 30 Jun 2008, 02:24 PM
Hello, Simon.
My colleague said your solution for retriving the "Text" properties of a path, not the "Value" properties.
Could you give us another workaround?
Regards,
Ricky.
My colleague said your solution for retriving the "Text" properties of a path, not the "Value" properties.
Could you give us another workaround?
Regards,
Ricky.
0
Hello Ricky,
Please consider the following implementation of the GetFullValuePath method:
RadTreeNode does not support such a method so it should be implemented additionally.
I hope this helps.
Sincerely yours,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please consider the following implementation of the GetFullValuePath method:
private string GetFullValuePath(RadTreeNode node, string delimeter) |
{ |
StringBuilder valuePath = new StringBuilder(delimeter); |
valuePath.Append(node.Value); |
while (node.ParentNode != null) |
{ |
valuePath.Insert(0, node.ParentNode.Value); |
valuePath.Insert(0, delimeter); |
node = node.ParentNode; |
} |
return valuePath.ToString(); |
} |
RadTreeNode does not support such a method so it should be implemented additionally.
I hope this helps.
Sincerely yours,
Simon
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center