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

[Solved] Ajax update on parent form

1 Answer 134 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matthew Roca
Top achievements
Rank 1
Matthew Roca asked on 13 Jun 2009, 04:25 AM
I have a page that dynamically loads one of three web user controls based UI actions.  For one of the user controls, some actions are performed within the code of the parent page.  This is accomplished by declaring a public event in the user control and subscribing to it in the main page.  When the user clicks on specific parts of the user control, the public event is raised, the parent page catches the raised event and performs some actions, including the updating of some control values on the main page.  However, the updates are not refreshed to the UI?  How, from within the code on main page, can the main page ajax controls be forced to update?  If a button is created on the main page with the click event executing the same code, all works as expected.  But, if the code executed in response to the user control event calls the click method of the button, the related parent page controls are not updated.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 16 Jun 2009, 09:03 AM
Hi Matthew,

Based on the provided information, it seems to that some ajax settings are missing. For instance, I assume that you have a setting where the user controls parent container updates itself, am I right? And if you want the user controls to update any other page content, you need to add an ajax setting where the parent container updates this content as well.

Find more about RadAjaxManager in the below articles:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/firstlook/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html

Additionally, you can try sending a stripped version of your project, or at least the problematic page so I could check it further.

Let me know how it goes.

Best wishes,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Matthew Roca
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or