I have a RadGrid (RadGrid1) that has a nestedViewTemplate. In this NestedViewTemplate, another grid (RadGrid2) is loaded.
RadGrid2 has an imagebutton in each row that opens a RadWindow, where the user can make modifcations to the row in RadGrid2.
When the RadWindow is closed (OnClientClose="refreshGrid" ), this function is run
The RadAjaxManager1_AjaxRequest method rebinds the grid in the NestedViewTemplate without reloading the main grid RadGrid1. This is the desired behavior and works fine. However, if I click on the image button again, the function can no longer find a reference to RadAjaxManager1, which is on the control that holds the Main grid
Any idea why the manager can no longer be found?
RadGrid2 has an imagebutton in each row that opens a RadWindow, where the user can make modifcations to the row in RadGrid2.
When the RadWindow is closed (OnClientClose="refreshGrid" ), this function is run
function refreshGrid() {
var args = null;
args = document.getElementById("inpHidden").value;
if (args) {
var mgr = $find("<%= RadAjaxManager1.ClientID %>");
if (mgr) {
mgr.ajaxRequest(args);
}
}
}
The RadAjaxManager1_AjaxRequest method rebinds the grid in the NestedViewTemplate without reloading the main grid RadGrid1. This is the desired behavior and works fine. However, if I click on the image button again, the function can no longer find a reference to RadAjaxManager1, which is on the control that holds the Main grid
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
OnAjaxRequest
=
"RadAjaxManager1_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid2"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid2"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid2"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel4"
runat
=
"server"
Width
=
"100%"
LoadingPanelID
=
"RadAjaxLoadingPanel4"
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel4"
runat
=
"server"
">
telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGrid1" ....
Any idea why the manager can no longer be found?