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

Update items for ComboBox with Load on demand

6 Answers 742 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nani
Top achievements
Rank 2
Nani asked on 30 Oct 2013, 01:35 PM
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)

6 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 01 Nov 2013, 08:06 AM
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!
0
Nani
Top achievements
Rank 2
answered on 01 Nov 2013, 09:22 AM
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
0
Vladimir Iliev
Telerik team
answered on 01 Nov 2013, 12:14 PM
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!
0
Nuno
Top achievements
Rank 2
answered on 09 Jun 2015, 01:46 PM

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?

0
Vladimir Iliev
Telerik team
answered on 09 Jun 2015, 02:55 PM
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
0
Nuno
Top achievements
Rank 2
answered on 09 Jun 2015, 03:16 PM
Oh, ok, cool. Wouldn't have guessed it though. :)
Tags
ComboBox
Asked by
Nani
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Nani
Top achievements
Rank 2
Nuno
Top achievements
Rank 2
Share this question
or