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. Image for the cookie policy date
close icon

TreeSet Datasource

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


3 Replies

SS Saranya Sivakumar Syncfusion Team October 29, 2015 11:48 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.



PR Prasanth November 15, 2015 12:14 PM UTC

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)


ES Ezhil S Syncfusion Team November 17, 2015 03:39 PM UTC

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

Live Chat Icon For mobile
Up arrow icon