Update items for ComboBox with Load on demand

7 posts, 0 answers
  1. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 30 Oct 2013 Link to this post

    Hi All,

    Initially we are using Telerik ASP.NET combo box. For this having load on demand option ( link). Now we are moving to Kendo UI combo box.
    This combo box doesn't contain all options (which are present in telerik asp.net combobox) like Load on demand , ShowMoreResultsBox.. etc.  

    Could you please provide solution for updating item on Load on demand 
    @(Html.Kendo().ComboBox()
             .Name("fabric")
             .Filter("contains")
             .Placeholder("Select fabric...")
             .DataTextField("Text")
             .DataValueField("Value")
             .DataSource(source =>
                 source.Read(read =>
                         {
                             read.Url("http://localhost:59590/api/Search/LoadonDemand");
                         }).ServerFiltering(true))
             .HighlightFirst(true)
             .IgnoreCase(true)
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 01 Nov 2013 Link to this post

    Hi Praveen,

     
    Basically to achieve the "Load on demand" behavior you should also set the "AutoBind" option to false - that way the ComboBox will request the data only when requested by the user. Additionally you can modify the server to restrict the response to for example 5 records. That way the ComboBox will load only 5 records, related to current search text on demand. 

    @(Html.Kendo().ComboBox()
            .Name("products")
            .DataTextField("ProductName")
            .DataValueField("ProductID")
            .HtmlAttributes(new { style = "width:250px" })
            .Filter("contains")
            .AutoBind(false)
            .MinLength(3)
            .DataSource(source => {
                source.Read(read =>
                {
                    read.Action("GetProducts", "Home");
                })
                .ServerFiltering(true);
            })
    )

    Kind Regards,
    Vladimir Iliev
    Telerik
    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. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 01 Nov 2013 Link to this post

    Hi
    Vladimir Iliev ,

    Thanks for replay. Please see attached image.

    My scenario: First i am loading 100 records. When user scroll down i am going to append next 100 records  and soon...
    To achieve this functionality  we need event like LoadonDemand.

    I implemented this complete functionality  using  TELERIK ASP.NET control (Online example). Now i trying to implementing same as like.

    Thanks,
    Praveen
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 01 Nov 2013 Link to this post

    Hi,

     
    I'm afraid that loading items on demand inside the ComboBox result drop-down currently is not supported out of the box and the solution from my previous reply should be used instead. Also please note that the KendoUI UserVoice already have such idea added and you can vote for it here (most voted ideas are included in next KendoUI releases). 

    Kind Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Nuno
    Nuno avatar
    28 posts
    Member since:
    Sep 2013

    Posted 09 Jun 2015 in reply to Vladimir Iliev Link to this post

    Well... I know I'm being a post digger, but... Found this one and went to user voice to check on the load on demand idea. Could not find it.

     Is this something already implemented, canceled, planed or what?

  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 09 Jun 2015 Link to this post

    Hi Nuno,

    This feature is already implemented - you can check the virtualization demo of the ComboBox widget below:

    Regards,
    Vladimir Iliev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Nuno
    Nuno avatar
    28 posts
    Member since:
    Sep 2013

    Posted 09 Jun 2015 in reply to Vladimir Iliev Link to this post

    Oh, ok, cool. Wouldn't have guessed it though. :)
Back to Top
UI for ASP.NET MVC is VS 2017 Ready