Is there a way that I can get a Node's FullPath from on the client side?
Here is what I am trying to do if you see an easy way to accomplish this task.
I am using a XmlDataSource to bind a xml file to a RadTreeView. I use some RadTreeNodeBinding's to get the tree to display properly. I then added some custom attributes to each node....life is good.
Now I want to Edit/Insert/Delete my nodes and persist those changes back to the file (or eventually the database).
My think was to allow the user to edit some of my custom attributes on the client side then call a function that takes a collection of the attributes and a XPath to where the node in question lives. This function would then have enough information to handle the saving.
To make this work I need to determine the FullPath on the client side or create a recursive Javascript function to create the path based on the node's parents.
Any ideas?
Here is what I am trying to do if you see an easy way to accomplish this task.
I am using a XmlDataSource to bind a xml file to a RadTreeView. I use some RadTreeNodeBinding's to get the tree to display properly. I then added some custom attributes to each node....life is good.
Now I want to Edit/Insert/Delete my nodes and persist those changes back to the file (or eventually the database).
My think was to allow the user to edit some of my custom attributes on the client side then call a function that takes a collection of the attributes and a XPath to where the node in question lives. This function would then have enough information to handle the saving.
To make this work I need to determine the FullPath on the client side or create a recursive Javascript function to create the path based on the node's parents.
Any ideas?