Hi,
Is it possible to use DataSourceRequest when using a Combobox with auto suggest?
For example: I have created T4 templates for simple CRUD operations with the read action like so:
public ActionResult Read([DataSourceRequest] DataSourceRequest request)
I was hoping to use this Read method when populating comboboxes and server filtering for suggesting.
At the moment I have had to add the following action to get it to work.
public ActionResult Lookup(string text)
As the objects are small it would be great if there was a way to reuse the Read action and the ToDataSourceResult() extension to create the filters etc.
Is there a way? Am I missing something? Like a custom model binder or an extension method which takes the query string e.g “text=MySearch&filter[logic]=and&filter[filters][0][value]=dsds&filter[filters][0][field]=DisplayName&filter[filters][0][operator]=contains&filter[filters][0][ignoreCase]=true”
Thanks Matt
9 Answers, 1 is accepted
Currently, the DataSourceRequest cannot be used for the ComboBox. The widget does not convert the Filter parameters of the DataSource in a way understandable for the DataSourceBinder. This functionality is scheduled for further investigation and if we find a feasible solution we will implement it for the upcoming release.
For now you can use the sent "text" parameter or define your own Data callback. Check this help topic for more information.
Georgi Krustev
the Telerik team
Thanks,
Gerbs
I am afraid this has not changed yet. I would suggest to submit a feature request at our feedback portal so we, and other members of the community can evaluate, comment on and vote for it. Most popular requests are often included in future Kendo UI releases.
Regards,
Alexander Popov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
This functionality is supported using Custom DataSource builder. Check the corresponding documentation.
Regards,
Georgi Krustev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks,
Gerbs
No. The virtual scrolling is a separate functionality, which is scheduled for Q1 2015 release of Kendo UI/UI for ASP.NET MVC. It can be implemented either using ToDataSourceResult or without it. It is entirely on developer's personal preferences.
Regards,
Georgi Krustev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thanks,
Gerbs
I would suggest you check the official roadmap blog post.
Regards,
Georgi Krustev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.