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

Ajaxified panel not updated from other ajaxified panel

3 Answers 71 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Espen Breivik
Top achievements
Rank 1
Espen Breivik asked on 04 Dec 2009, 01:10 PM
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






3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 04 Dec 2009, 03:31 PM
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.
0
Espen Breivik
Top achievements
Rank 1
answered on 07 Dec 2009, 08:21 AM
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)
      }
   }
}
0
Iana Tsolova
Telerik team
answered on 07 Dec 2009, 11:36 AM
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.
Tags
Ajax
Asked by
Espen Breivik
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Espen Breivik
Top achievements
Rank 1
Share this question
or