I'm developing an application with Kendo Controls of 2014 (I don't have access to the newest one 2017 or 2018). In this project, I have several columns of the Foreign Key type like this one:
columns.ForeignKey(p => p.StatusID, (System.Collections.IEnumerable)ViewData["status"], "ID", "Name").HeaderTemplate("Status")
In order to create the grid I followed the basic example:
http://demos.telerik.com/aspnet-core/grid/foreignkeycolumn
For the basic implementation, it looks and works as expected the users can select from a variety of Status or Users in the filtering and editing options.
However, I would like to be able to select more than one at once. I tried to migrate this example, which is for Kendo for jQuery:
Where they implemented a Multi Select.
That should be enough to satisfy my needs. I tried to migrate to the ASP MVC and now, it looks like this:
@model object
@(
Html.Kendo().MultiSelectFor(m => m)
.BindTo((MultiSelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
)
Basically, I replaced the Drop Down list into a Multi Select, but nothing changed my filtering is still displaying the normal Drop Down, there is no Multi Select:
Maybe I should do more changes, but I don't know what else I should change; I would like to know if someone has ever experienced this before and how they handled it, I have tried multiple examples and codes, but my template newer changes, it's always the Drop Down List. Another interesting example, but it's in jQuery too, I haven't been able to find an implementation in ASP MVC:
http://jsfiddle.net/victordscott/5kbfY/
Besides, I'm aware that what I would like to achieve is available since 2015 Q1:
http://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes
Unfortunately, I don't have access to any newer version as I explained before. Thanks in advance for any idea.