Hi Sivakumar,
Thanks for contacting Syncfusion forums.
Your requirement of placing the treeview control inside a dropdown can be achieved by placing our TreeView control within our GenericDropdown control. Please refer the below code snippet.
<code>
<div id="drop-down-contents" style="visibility: hidden">
<%=Html.Syncfusion().TreeView("tree") %>
</div>
<%=Html.Syncfusion().GenericDropDown("myDropDown")
.TargetContentId("drop-down-contents")%>
</code>
In the above code, the treeview contents are loaded dynamically in controller page . You can also load the treeview contents in view page itself. Please refer the below online UG link for creating the TreeView control and GenericDropdown control and their various features.
http://help.syncfusion.com/ug/asp.net%20mvc/tools/default.htm#!documents/genericdropdown.htm
http://help.syncfusion.com/ug/asp.net%20mvc/tools/default.htm#!documents/treeview.htm
We have also prepared a simple sample with the above requirement for your convenience and it can be downloaded from the below link.
Please let us know if you have any other concerns.
Regards,
Meena
Hi Sivakumar,
Thanks for the update.
We have modified the previous sample to meet your requirement of rendering different treeview within Genericdropdown control based on user selection and it can be downloaded from the below link.
In the attached sample, we have a simple dropdown with three items. Based on its selection, different treeview will be rendered within Genericdropdown.
Kindly have a look at the sample and let us know if it helps.
Regards,
Meena
Hi Siva,
Thanks for the update.
Kindly get back to us if you need further assistance. We will be happy to help you out.
Regards,
Meena