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

Partial Postback with EnableLoadOnDemand

3 Answers 126 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kevat
Top achievements
Rank 1
Kevat asked on 30 Apr 2013, 10:31 PM
I have a usercontrol with a radcombobox inside an update panel. I am using many of these user controls on a single page. EDIT: I've enabled load on demand for the combobox.

When I finish using one of these comboboxes and click outside (blur the combobox), it calls the correct usercontrol page_load and the correct validation (validation only for that control).

However, every time I enter a letter into the combobox, it seems to call ALL page_loads and ALL validations.

To recap, selectedindexchanged causes only the required page_loads and validations to fire. Loadondemand causes all page_loads and validations to fire. Its almost as if selectedindexchanged only causes a partial postback while loadondemand causes a full postback. NOTE: LoadOnDemand does not cause the panels to update, it only calls the incorrect page_load and validation.

FYI, I've got the updatemode for the update panels as conditional and children as triggers. Does loadondemand not register as a trigger for this update panel?
If so, how do I add loadondemand as a trigger to the update panel?
If not, then what do you think is the issue here?

P.S.: That was a very confusing post, I'm still not sure if I'm getting my point across. Please let me know if you need more information.

3 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 03 May 2013, 02:07 PM
Hi Kevat,

Can you paste your code here. I'd like to see your implementation of this scenario.

Thanks.

Regards,
Hristo Valyavicharski
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sharmin
Top achievements
Rank 1
answered on 01 Jul 2013, 09:56 PM
Hi,

I am trying to do a LoadOnDemand for my radcombobox as it is mentioned in http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx. The issue is if you click on a button and submit, the LoadOnDemand does not work again. It always returns one value.

Steps to reproduce.
1. Go to the above URL
2. Click on any of the DropDown, choose an item and click on Select
3. Now, the dropdown will have only one value....

How to fix this?

0
Hristo Valyavicharski
Telerik team
answered on 04 Jul 2013, 03:39 PM
Hi Sharmin,

This is how the Load On Demand feature work. It displays only those items which text starts with the same value entered in the combo's input. To display all items just clear all text from the combo's input and it will display the initial results.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
Kevat
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Sharmin
Top achievements
Rank 1
Share this question
or