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).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback

TreeSet Datasource

Thread ID:





120922 Oct 27,2015 05:33 AM UTC Oct 29,2015 11:49 AM UTC ASP.NET Web Forms 3
Tags: DropDownList
Asked On October 27, 2015 05:33 AM UTC

Hi there,

Is it possible to have drop down filled in based on datasource which has tree structure data set (stored in database).

And display / render it with either
  1. Check-box options 
  2. Single selection based option


Saranya Sivakumar [Syncfusion]
Replied On October 28, 2015 01:01 PM UTC

Hi Prasanthan,

Thanks for contacting Syncfusion support.

We can bind the Treestructured data to the Dropdownlist control with the checkboxes using ContentTemplate API. Using ContentTemplate we can define the customized structure for the content of the Dropdownlist control as shown in the following code snippet.


<ej:DropDownList ID="selectFolder" runat="server" ClientIDMode="Static" Width="280px" PopupWidth="280px" PopupHeight="280px" WatermarkText="Select any value">




                            <ej:TreeView ID="Treeview" runat="server" DataTextField="Text" ClientIDMode="Static" DataIdField="ID" DataParentIdField="ParentID"

                                DataHasChildField="HasChild" ClientSideOnNodeExpanded="checkScroll" ClientSideOnNodeChecked="onNodeCheck" ClientSideOnNodeUnchecked="onNodeUnCheck" ClientSideOnNodeSelected="onNodeSelect" ShowCheckbox="true" ClientSideOnNodeCollapsed="checkScroll">







We have prepared the simple sample Dropdownlist with Treeview along with checkbox enabled and the same can be downloaded from the following location.

Sample Location: Sample



Replied On October 28, 2015 01:11 PM UTC

Hi Saranya,

Thanks for the reply, I thought I have posted the question on ASP.NET MVC forum, I wanted to know how this can be achieved in ASP.NET MVC.  I will post the question on correct forum

Here is the ASP.NET MVC forum thread link, if you have an answer for MVC framework please update the forum, otherwise I will wait for an answer 


Apologies for the confusion


Saranya Sivakumar [Syncfusion]
Replied On October 29, 2015 11:49 AM UTC

Hi Prasanthan,

As per your request we have prepared EJMVC sample for Dropdownlist with Treeview control as datasource and the same can be downloaded from the following location.


Please let us know if you have any other queries.




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