This is a migrated thread and some comments may be shown as answers.

Treeview to Edit

1 Answer 51 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rhys
Top achievements
Rank 1
Rhys asked on 17 Jul 2008, 02:11 PM
Hi All,

   I am trying to run the treeview as follows,
It lists all the customers in a company,
The users have can right click on a customer and receive a context menu.
<--- Up to here I am fine --->
Then they can select edit and a window will open with a form in that allows them to edit the selected customer.  So how do I pass the customer id to the window?

Cheers

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Jul 2008, 01:48 PM
Hi Rhys,

Thank you for contacting us.

I suggest you pass the customer id in the query string of the url used to open the window. Please check out the code snippet below:  

var id = node.get_value();  
window.open ("EditUser.aspx?id=" + id);  
 

Hope this helps.

All the best,
Yana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Rhys
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or