RadAjax Prometheus does a full-page postback (not ajaxified) when the control is dynamically loaded in the page_load event. But this works in both the non-prometheus RadAjax version and when using the ASP.NET AJAX UpdatePanel.
A simple example ...
- create an ascx control (WebUserControl.ascx)
- add an ajax panel with some test action inside of it
- create an aspx page
- add a placeholder control called "ph"
- in page_load, add:
Control ctl = LoadControl("~/WebUserControl.ascx");
ph.Controls.Add(ctl);
You will see that the AJAX functionality is borked.
Next, replace the promethus ajax panel with a non-prometheus panel, or and ASP AJAX UpdatePanel, and you'll see that it works.
I have seen the example located here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Common/LoadingUserControls/DefaultCS.aspx
But, in the example, the ajax panel is location in the ASPX page and the user control is loaded inside of it. The problem I am describing happens when you include the AJAX panel *inside* of the user control.
Any suggestions?
Thnaks!
John
Pyron Technologies
A simple example ...
- create an ascx control (WebUserControl.ascx)
- add an ajax panel with some test action inside of it
- create an aspx page
- add a placeholder control called "ph"
- in page_load, add:
Control ctl = LoadControl("~/WebUserControl.ascx");
ph.Controls.Add(ctl);
You will see that the AJAX functionality is borked.
Next, replace the promethus ajax panel with a non-prometheus panel, or and ASP AJAX UpdatePanel, and you'll see that it works.
I have seen the example located here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Common/LoadingUserControls/DefaultCS.aspx
But, in the example, the ajax panel is location in the ASPX page and the user control is loaded inside of it. The problem I am describing happens when you include the AJAX panel *inside* of the user control.
Any suggestions?
Thnaks!
John
Pyron Technologies