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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeSet Datasource

Thread ID:

Created:

Updated:

Platform:

Replies:

120949 Oct 28,2015 01:09 PM UTC Nov 17,2015 03:39 PM UTC ASP.NET Web Forms 3
loading
Tags: DropDownList
Prasanth
Asked On October 28, 2015 01:09 PM 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

Regards
Prasanthan

Saranya Sivakumar [Syncfusion]
Replied On 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.

http://www.syncfusion.com/downloads/support/forum/120949/ze/DDLMVC311301045

Please let us know if you have any other queries.

Regards,

Saranya.S


Prasanth
Replied On 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)

Regards
Prasanthan

Ezhil S [Syncfusion]
Replied On 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,
http://help.syncfusion.com/js/api/ejdropdownlist#members:template
http://help.syncfusion.com/js/api/ejgrid#members:columns-template

We have prepared custom sample as per your requested scenario and it can be downloaded from the link below:
http://www.syncfusion.com/downloads/support/forum/120949/ze/DropDownGrid_f1209491348199217

Please let us know if you have further queries.

Regards,
Ezhil S

CONFIRMATION

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.

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

;