Configure Server Grouping and Sorting in MultiSelect


Product Progress Kendo UI MultiSelect for ASP.NET MVC


How can I enable the server-side grouping and sorting for the Kendo UI MultiSelect in ASP.NET MVC projects?


  1. Enable sorting and grouping. Indicate by which field the data will be sorted and grouped. Define

        .DataSource(source => source
            .Sort(s => s.Add("Name"))
            .Group(g => g.Add("TypeP", typeof(string)))
            .Transport(transport => transport
            .Read(read =>
                read.Action("GetProducts", "Home");
            .Schema(s => s
                .Model( m => m.Id("Id"))
        .Placeholder("Select product...")
  2. In the controller action, handle the DataSourceRequest.

        public JsonResult GetProducts([DataSourceRequest]DataSourceRequest request)
            var productss = ProductsAll().ToDataSourceResult(request);
            return Json(productss);

See Also

In this article
Not finding the help you need? Improve this article