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

Adding Ajax Settings From within User Control into Page AjaxManager

1 Answer 73 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Richard Butler
Top achievements
Rank 1
Richard Butler asked on 23 Dec 2008, 03:10 PM
In the old RadControls (2008 Q1).   I had code to add ajax settings from within a usercontrol to the ajaxmanager on the containing page. (Senario is I have a set of dynamically created controls for different cultures, and one field for each culture does apostback to check the value is unique in database).

When I upgraded to AJAX controls (2008 Q3), this no longer works as it used to, it does the Ajax Postback and displays the loading bar as expected, but after the ajax call has finished the field disappears, any reason why?


This is where the AjaxSetting is added in the Page_Load of my User Control, If i comment this out the ajax of the outer containing panel handles the ajax call and everything is fine, but this is added in the page not the user control?

 

 

 

Dim oAjaxManager As Telerik.Web.UI.RadAjaxManager

 

oAjaxManager = RadAjaxManager.GetCurrent(Page)

 

 

Dim oAjaxLoadingBar As Telerik.Web.UI.RadAjaxLoadingPanel

 

oAjaxLoadingBar = Page.FindControl(

"AjaxLoadingBar")

 


If Not IsNothing(oFriendlyURL) And Not IsNothing(oFriendlyURLError) Then  
     oAjaxManager.AjaxSettings.AddAjaxSetting(oFriendlyURL, oFriendlyURL, Nothing)  
     oAjaxManager.AjaxSettings.AddAjaxSetting(oFriendlyURL, oFriendlyURLError, oAjaxLoadingBar)  
End If 


 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Dec 2008, 01:42 PM
Hi Richard,

Will it be convenient for you to open a regular support ticket and send us small runnable application which represents the described behaviour? We will test it locally and advise you further.

Thank you for the cooperation.

Greetings,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Richard Butler
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or