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

Problem Using RadAjaxManger with nested controls

3 Answers 90 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
r4dn3t
Top achievements
Rank 1
r4dn3t asked on 24 May 2011, 01:10 PM
Hello Experts,

I'm new with Telerik and I have a problem which i'll describe bellow:

[PREFACE]

Imagine this structure:

Default.aspx
  |
  |
  |======> Modules|
                   |
                               |----> Module1|--->UserControl1.ascx
|--->UserControl2.ascx

there is some modules in this structure. i have a master page with a runat=server tagged DIV tag. whenever i want to use the appropriate module, I would just use the LoadControl() method and assign the loaded user control to the spoken DIV. for example if I want to use module "Module1":

contentPlaceHolder.Controls.Add(LoadControl("Modules/Module1/UserControl1.ascx"));

each user control has the appropriate controls and layer to handle requests.
 
[MY PROBLEM]

all the first level loadings will take place via real postback. in the first level loaded user control i have a <Telerik:RadAjaxManager> tag with the specified controls added to it and it works fine (thanx to telerik developers). the problem comes when I try to load another user control in an ajaxified DIV (for example).

When I load the specified control, I want to register new ajax settings for that dynamic loaded user control's controls collection.
BUT I CANT

any idea???

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 27 May 2011, 08:24 AM
Hi Tondar,

If you are loading the user control dynamically, then it is recommended to add its ajax settings on Page_PreRender, so that it is sure that all controls are already available on the page and use code similar to that of the following help article:
Add AjaxSettings programmatically

Kind regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
r4dn3t
Top achievements
Rank 1
answered on 01 Jun 2011, 12:13 PM
thanx for your reply. can i ask some fundamental questions ???
0
Tsvetina
Telerik team
answered on 06 Jun 2011, 01:43 PM
Hello Tondar,

As long as the questions are related to the RadControls for ASP.NET AJAX, it is fine to ask. However, keep in mind that most of the fundamentals about our controls are described in our online documentation:
RadControls for ASP.NET AJAX Documentation

Greetings,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
r4dn3t
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
r4dn3t
Top achievements
Rank 1
Share this question
or