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

Can we limit the amount of callbacks when EnableLoadOnDemand and MarkFirstMatch=true?

2 Answers 44 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brandon Spilove
Top achievements
Rank 1
Brandon Spilove asked on 30 Dec 2010, 08:03 PM
I have a RadComboBox with EnableLoadOnDemand=true with an ItemsRequested event that fires when you type any character into the combobox text field. This all works, but it is too slow because of all the callbacks after every character is entered. Let's take this example:

I am looking for the value 1422 in my combobox list. I type '1' and it calls the server and shows me all items that start with '1'. Then I type '4' and it calls the server again to show me all items that start with '14'. This seems unnecessary. If we already have a list of all items that start with '1', then why do we need to call the server again to get the subset that starts with '14'? After the initial results are returned to the client, can I somehow search those results on the client for the '14' entries. After all, they have already been sent from the server, there's no need for any additional callbacks unless I delete back past the '1'.

Any help would be much appreciated.

thanks!
Brandon

2 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 31 Dec 2010, 05:54 AM
I suggested this a few weeks back...I'm also hoping they're going to do it right

It's especially bad when you have a few thousand items (painfully slow)

0
Kalina
Telerik team
answered on 04 Jan 2011, 10:37 AM
Hello Brandon Spilove,

Let me suggest you use the new MinFilterLength property that we introduced in our latest Q3 release.
MinFilterLength property is used for setting minimum length of the typed text before a new Load On Demand request for items is initiated.

Kind regards,
Kalina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ComboBox
Asked by
Brandon Spilove
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Kalina
Telerik team
Share this question
or