|109600||Jun 21,2013 01:10 PM UTC||Jun 27,2013 08:48 AM UTC||ASP.NET MVC (Classic)||1|
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;
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.
or the page will be automatically redirected to sign-in page in 10 seconds.