I have a master page with a custom user control. The user control has a RadTreeView within it.
I've exposed a property for this control on the master page.
On my content page I have a RadAjaxManager and have both a RadGrid and the user control as controls to be updated. I understand that it's a better idea to have the RadAjaxManager on the master page but this won't be possible in my case.
I initiate a client side AJAX request as follows:
In my RadAjaxManager1_AjaxRequest method I handle the request:
The RadGrid correctly updates but the user control does not. I've tried setting the AjaxSettings programmatically but this doesn't work either. Is this not possible or am I doing something wrong?
<ucs:ListsTab ID="ucListsControl" runat="server" />I've exposed a property for this control on the master page.
public TplListControlTab TplListControl { get { return ucListsControl; } }On my content page I have a RadAjaxManager and have both a RadGrid and the user control as controls to be updated. I understand that it's a better idea to have the RadAjaxManager on the master page but this won't be possible in my case.
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel2" /> <telerik:AjaxUpdatedControl ControlID="ucListsControl" /> </UpdatedControls></telerik:AjaxSetting>I initiate a client side AJAX request as follows:
var _ajaxManager = "<%= RadAjaxManager1.ClientID %>";$find(_ajaxManager).ajaxRequest("SomeCommand");In my RadAjaxManager1_AjaxRequest method I handle the request:
if (e.Argument == "SomeCommand") { // ... do some stuff to RadGrid's datasource. RadGrid1.Rebind(); // ... do some stuff to user control's datasource. Master.TplListControl.RadTreeView.DataBind();
}The RadGrid correctly updates but the user control does not. I've tried setting the AjaxSettings programmatically but this doesn't work either. Is this not possible or am I doing something wrong?