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.

TreeSet Datasource

Thread ID:





120949 Oct 28,2015 09:09 AM Nov 17,2015 10:39 AM ASP.NET Web Forms 3
Tags: DropDownList
Asked On October 28, 2015 09:09 AM

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 29, 2015 07:48 AM

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.



Replied On November 15, 2015 07:14 AM

Hi Saranya,

The solution you have provided has worked well for what I was looking for.  

I have new requirement.  Is it possible to place similar DropDownList in a Grid?  The issue I have is that, I have list of Objects with each one of them having a relationship (N:N) with another type of object (which has tree structure and user should be able to select more than one).  If showing tree set structure via dropdown in the grid is difficult, I am happy to show the data as flatten list on the drop down list (with check box of course)


Ezhil S [Syncfusion]
Replied On November 17, 2015 10:39 AM

Hi Prasanthan,

Thanks for the update.

In order to add a DropDownList control with TreeView in a Grid, we suggest you to use Column template and DropDownList template. On adding DropDownList with TreeView to Grid configure the node click and check event to update the corresponding DropDownList text. Refer the following API references link,

We have prepared custom sample as per your requested scenario and it can be downloaded from the link below:

Please let us know if you have further queries.

Ezhil S


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.