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
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
);
})
)
Vladimir Iliev
Telerik

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
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).
Vladimir Iliev
Telerik

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?
This feature is already implemented - you can check the virtualization demo of the ComboBox widget below:
Regards,
Vladimir Iliev
Telerik
