I dynamically load user control as panelBar item. And with the RadAjax proxy in Manager_AjaxRequest I am trying to update Text box and a label on the user control. Text box gets updated but not a label. I have added both controls in Ajax request update controls Mark up.
7 Answers, 1 is accepted
Private
Sub pnlBarAccounts_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles pnlBarAccounts.ItemCreated
RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)
RadAjaxManagerProxyAcctSetup.AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)
And try to update in following event Text for both these controls. Text box get's udpated but not label. I am assigning same text for both controls
Private
Sub Manager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
Could you please try adding the following code snippet into the Page_Load event handler and let me know if the issue still persists:
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)
Looking forward for your reply.
Sincerely yours,
Radoslav
the Telerik team
To achieve the desired functionality and ajaxify controls dynamically, you need to add controls to the AjaxSettings into event which is occurred every time when the page is created. Could you please try adding the following code snippet into the pnlBarAccounts_ItemCreated and let me know if the issue still persists:
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, txtFIName)
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManagerProxyAcctSetup, lblFiNameText)
Additionally please check out the following online resources:
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html
http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html
Best wishes,
Radoslav
the Telerik team
Based on the provided information is hard to determine what is causing the described issue. Could you please send us a small runnable project which demonstrates the issue. You could open a formal support ticket from your Telerik account and attach a ZIP file there. Thus we will be able to we debug the project and provide you with more to-the-point answer.
All the best,
Radoslav
the Telerik team