This is a migrated thread and some comments may be shown as answers.

Is it possible to use DataSourceRequest for Combobox filtering/Sugguesting

9 Answers 385 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 25 Aug 2012, 06:48 AM

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

Sort by
0
Georgi Krustev
Telerik team
answered on 28 Aug 2012, 01:57 PM
Hello Matt,

 
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.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gerber
Top achievements
Rank 1
answered on 03 Jun 2014, 01:06 AM
Just wonder if this is supported now for ComboBox?
Thanks,
Gerbs
0
Alexander Popov
Telerik team
answered on 03 Jun 2014, 12:42 PM
Hi 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.

 
0
Russ
Top achievements
Rank 1
answered on 14 Feb 2015, 10:26 PM
I submitted a request for this feature.
0
Georgi Krustev
Telerik team
answered on 16 Feb 2015, 12:32 PM
Hello,

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.

 
0
Gerber
Top achievements
Rank 1
answered on 17 Feb 2015, 02:32 AM
Hi Georgi - will this behave as Virtual scrolling?
Thanks,
Gerbs
0
Georgi Krustev
Telerik team
answered on 17 Feb 2015, 08:46 AM
Hi 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.

 
0
Gerber
Top achievements
Rank 1
answered on 17 Feb 2015, 08:56 AM
Hi Georgi - meaning by Q1 2015 release will now have the ability of combobox to virtual scroll?
Thanks,
Gerbs
0
Georgi Krustev
Telerik team
answered on 20 Feb 2015, 07:31 AM
Hello Gerber,

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.

 
Tags
ComboBox
Asked by
Matt
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Gerber
Top achievements
Rank 1
Alexander Popov
Telerik team
Russ
Top achievements
Rank 1
Share this question
or