We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

treeview node inside generic dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

58950 Apr 2,2007 04:50 AM Apr 2,2007 07:49 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
sujith ks
Asked On April 2, 2007 04:50 AM

Hi I use a generic drop down and inside that i use a treeview .each treeviewnode has a ID,Value,Text.when i click the dropdown,the tree appears.when i click a particular node,i call the code genericdropdown1.SetText(treeNode.ValuPath);document.getElementById("HSelectedNode")=treeNode.Value;

I have a button(html) .when i click that button,i want to select a particular tree node in the drop down.i have the value of node to be selected with me.i want to traverse all the nodes and check the value of each node and if it matches i want to select that node (at client side) how can i do that?

Valli [Syncfusion]
Replied On April 2, 2007 07:49 AM

Hi Sujith,

I am afraid that it is not possible to select the TreeViewNode at the client side.

Meanwhile the below is a sample link, which selects a TreeviewNode based on its value without triggering a postback.

http://websamples.syncfusion.com/samples/Tools.Web/4.4.0.51/F58950/main.htm

1. 'Onclick' event of the button 'btnClick', displays a Textbox which is used to enter the value of the TreeViewNode and a HTML button 'btnSelect'.
2. 'Onclick' event of the 'btnSelect' triggers a serverside callback, which traverse the TreeViewNode to check whether the value of the TreeViewNode matches the value entered in the Textbox.
3. If the value of the TreeViewNode matches the Textbox value, the corresponding node is selected.

Please try running the sample and let me know if this helps you.

Regards,
Valli

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;