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][value]=dsds&filter[filters][field]=DisplayName&filter[filters][operator]=contains&filter[filters][ignoreCase]=true”