Ajaxified panel not updated from other ajaxified panel

4 posts, 0 answers
  1. Espen Breivik
    Espen Breivik avatar
    19 posts
    Member since:
    Sep 2005

    Posted 04 Dec 2009 Link to this post

    We have two panels added to our page programmatically, both are added to the RadAjaxManager. The first contains a RadComboBox, the second a RadGrid. The first grid panel is added as trigger for the combo box panel. When rows are added, the combobox should be updated with new items. This works when the grid(and panel) is added before the combo box(and panel). However when the combo box panel is added before the grid panel, the combo box isn't updated.

    Unfortunately I was unable to reproduce this in a smaller demo project.

    Any ideas for what we can try would be greatly appreciated!

    OnInit:
    Controls added

    OnLoadComplete:
    Controls in panels data bound if panel was updated

    Page_PreRender:
    Panels added to RadAjaxManager






  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 04 Dec 2009 Link to this post

    Hello Endre,

    When you want to add an ASP:Panel as ajax initiator in the RadAjaxManager ajax settings, you also need to add a setting where the ASP:Panel updates itself. Could you please confirm you followed this requirement?

    Regards,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Espen Breivik
    Espen Breivik avatar
    19 posts
    Member since:
    Sep 2005

    Posted 07 Dec 2009 Link to this post

    Hello Iana,

    Thanks for your quick reply!

    The panels are added to trigger themselves first. The ajax loading panels are also shown over all the panels that are suppose to be updated on the request, but the data is not updated.

    Pseudocode for adding ajax:

    foreach(section in sections_on_my_site)
    {
       if(section.ajaxify)
       {
          ajaxmanager.add(section.panel,section.panel)
          foreach(section_to_update in section.sections_to_update)
          {
             ajaxmanager.add(section_to_update.panel,section_to_update.panel)
             ajaxmanager.add(section.panel,section_to_update.panel)
          }
       }
    }
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 07 Dec 2009 Link to this post

    Hi Endre,

    Thank you for the additional information.

    However, could you pelase confirm that you are adding the ajax settings after all the dynamic controls are being added to the page? Try moving the code for the settings to the Page_PreRender event handler and see if it makes any difference.
    Additionally, I tried preparing a sample project following your scenario. Please check it out and let me know if it works as desired and what differs in your case.

    Sincerely yours,

    Iana
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top