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.

Multiselect Dropdownlist in TreeGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

131010 Jun 16,2017 01:13 AM Jun 19,2017 12:20 PM ASP.NET MVC 1
loading
Tags: TreeGrid
MQB
Asked On June 16, 2017 01:13 AM

Hello,
I would like to know how to implement multiselect dropdownlist in TreeGrid's Inline Editing.
I am currently using ASP.NET MVC Syncfusion version 15.2.0.40.
Thanks


Jayakumar Duraisamy [Syncfusion]
Replied On June 19, 2017 12:20 PM

Hi Marie, 
Thank you for contacting Syncfusion support. 
In the TreeGrid dropdown column, we have a column property called “DropDownEditOption” to customize the dropdown control properties. 
For enable multiple selection in the dropdown list, we have to enable API’s called “MultiselectMode” and set the mode as “Delimiter or Visual Mode”. if you require multiple selection with checkbox then set ShowCheckbox as true. 
Please refer the following code snippet. 
//DropDown object/Model 
@{ 
    var opt = new Syncfusion.JavaScript.Models.DropDownListProperties(); 
    opt.DataSource = ViewBag.dropData; 
    opt.DropDownListFields.Text = "text"; 
    opt.DropDownListFields.Value = "value"; 
    opt.MultiSelectMode = MultiSelectModeTypes.Delimiter; 
    opt.ShowCheckbox = true;     
    } 
 
@(Html.EJ().TreeGrid("TreeGridContainer") 
//… 
.Columns(co => 
           {   
           co.Field("Priority").HeaderText("Priority").EditType(TreeGridEditingType.Dropdown). 
                DropDownData(opt.DataSource).DropDownEditOptions(opt).Add(); 
}) 
 
 
We have also prepared a sample for your reference. Please find the sample location as below, 
Please let us know, if you require any other assistance. 
Regards, 
Jayakumar D 


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.

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.

;