Hi,
I have got many ajax settings to define and my page is heavy to render.
So I decide to add settings dynamically. The problem is i need to know ajax settings from Page_Load.
To resolve that, I added UpdatedControls in a hidden field from javascript and I start an ajaxRequest. During Page_Load on server, I retrieve UpdatedControls from hidden field and I build my ajax settings (my Initiator is RadAjaxManager1 to manage ResponseEnd).
My Page_Load set settings normaly but I always get the error :
Execution error Microsoft JScript: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'dnn_ctrxxx_tvNodesPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
All my UpdatedControls are always visible ; I don't understand because if I mention these UpdatedControls directly from HTML tags
Thank you for help !
I have got many ajax settings to define and my page is heavy to render.
So I decide to add settings dynamically. The problem is i need to know ajax settings from Page_Load.
To resolve that, I added UpdatedControls in a hidden field from javascript and I start an ajaxRequest. During Page_Load on server, I retrieve UpdatedControls from hidden field and I build my ajax settings (my Initiator is RadAjaxManager1 to manage ResponseEnd).
My Page_Load set settings normaly but I always get the error :
Execution error Microsoft JScript: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'dnn_ctrxxx_tvNodesPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
All my UpdatedControls are always visible ; I don't understand because if I mention these UpdatedControls directly from HTML tags
<UpdatedControls>, it works well !
This is the parts of codes written to accomplish the mechanism :
function OnClientNodeClicked(sender, args) |
{ |
$get("<% = hdAjaxSettings.ClientID %>").value |
= "tvNodes,rcmClipboard_Document_Permissions,rcmClipboard_Node_Permissions"; |
$find("<%=RadAjaxManager1.ClientID%>").ajaxRequest('Node_Clicked'); |
} |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnResponseEnd="OnResponseEnd"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
<Telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" /> |
<asp:HiddenField ID="hdAjaxSettings" runat="server" /> |
If Not Page.IsPostBack Then |
Else |
Dim hdAjaxSettingIDs As String = hdAjaxSettings.Value |
If Not hdAjaxSettingIDs = String.Empty Then |
For Each ID As String In hdAjaxSettingIDs.Split(",") |
Dim UpdatedControl As New AjaxUpdatedControl(ID, "LoadingPanel1") |
RadAjaxManager1.AjaxSettings(0).UpdatedControls.Add(UpdatedControl) |
Next |
End If |
End If |
Thank you for help !