Client-Side handling of treeview and listbox ctrl

Asked By orb1234 developer
30-Jul-04 02:38 AM
Earn up to 0 extra points for answering this tough question.
Hi, I have a page where I use the IE Treeview control (populated from a XML) and the ListBox control. I need to use Client-Side handling to move the selectedItem text value from the treeview to the ListBox. I have an Image server control that has an "onclick" event that activates a JS function. All controls are created dynamically by the code-behind file. The situation is that I am able to access both the treeview and listbox controls in the JS function on the Client-Side, but I'm unable to find the syntax for getting the selected item from the treeview and adding a new item to the listbox (having the properties of the treeview item) in JavaScript. Any information will be most appreciated Thanks

  Client-Side handling of treeview and listbox ctrl

Asked By Surendra Sambana
10-Aug-04 02:39 AM
You need to call the function by onselectedindexchange attribure. U can get the node by (Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs e) event node_name =Treeview1.GetNodeFromIndex(e.NewNode).Text.ToString() ; hope it will be useful fo r u. Have a nice day Surendra
Create New Account