Is it possible to use DataSourceRequest for Combobox filtering/Sugguesting

10 posts, 0 answers
  1. Matt
    Matt avatar
    8 posts
    Member since:
    Jun 2010

    Posted 25 Aug 2012 Link to this post

    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

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 28 Aug 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Gerber
    Gerber avatar
    5 posts
    Member since:
    May 2014

    Posted 02 Jun 2014 in reply to Georgi Krustev Link to this post

    Just wonder if this is supported now for ComboBox?
    Thanks,
    Gerbs
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 03 Jun 2014 Link to this post

    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.

     
  6. Russ
    Russ avatar
    6 posts
    Member since:
    Apr 2014

    Posted 14 Feb 2015 Link to this post

    I submitted a request for this feature.
  7. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 16 Feb 2015 Link to this post

    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.

     
  8. Gerber
    Gerber avatar
    5 posts
    Member since:
    May 2014

    Posted 16 Feb 2015 in reply to Georgi Krustev Link to this post

    Hi Georgi - will this behave as Virtual scrolling?
    Thanks,
    Gerbs
  9. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 17 Feb 2015 Link to this post

    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.

     
  10. Gerber
    Gerber avatar
    5 posts
    Member since:
    May 2014

    Posted 17 Feb 2015 in reply to Georgi Krustev Link to this post

    Hi Georgi - meaning by Q1 2015 release will now have the ability of combobox to virtual scroll?
    Thanks,
    Gerbs
  11. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 20 Feb 2015 Link to this post

    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.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready