Partial Postback with EnableLoadOnDemand

4 posts, 0 answers
  1. Kevat
    Kevat avatar
    2 posts
    Member since:
    Apr 2013

    Posted 30 Apr 2013 Link to this post

    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.
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 03 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sharmin
    Sharmin avatar
    8 posts
    Member since:
    May 2012

    Posted 01 Jul 2013 Link to this post

    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?

  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Jul 2013 Link to this post

    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.
Back to Top