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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Two GenericDropDown How to achieve linkage?

Thread ID:





109600 Jun 21,2013 01:10 PM UTC Jun 27,2013 08:48 AM UTC ASP.NET MVC (Classic) 1
Tags: Tools
Asked On June 21, 2013 01:10 PM UTC

Two GenericDropDown   实现联动效果??

Sunil Prabakar C [Syncfusion]
Replied On June 27, 2013 08:48 AM UTC

Hi Customer,


Thanks for contacting Syncfusion support.


Since we are not able to get your requirements clearly. We make simply the hierarchy between two generic dropdown to achieve linkage between two generic dropdown. To achieve this use the  “OnTextChanged” serverside event for primary dropdown. And using this event bind the values for secondary dropdown. Please refer the following code snippet.






<syncfusion:GenericDropDown ClientObjectId="Generic" AutoPostBackOnTextChanged="true"

            ID="GenericDropDown1" runat="server" Width="150px" OnTextChanged="GenericDropDown1_TextChanged">




   protected void GenericDropDown1_TextChanged(object sender, Syncfusion.Web.UI.WebControls.Shared.GenericDropDownTextChangeEventArg e)


        if (GenericDropDown1.Text == "Tools")


            TreeViewNode node1 = new TreeViewNode();

            node1.ID = "tools1";

            node1.Text = "ASP";

            TreeViewNode node3 = TreeView2.Items[0];

            node3.Text = "Tools";





            gdd.Text = "-Select-";







For your reference we have prepared the sample to exhibit this behavior, its available in below link.




If your requirement is different form hierarchy generic dropdown, kindly let us know with further more details.

Thanks & Regards

Sunil Prabakar C


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon