or
for (int i = 0; i <= ShotDetail_RadGrid.MasterTableView.Items.Count - 1; i++) { Panel aspPanel = ShotDetail_RadGrid.MasterTableView.Items(i).ChildItem.FindControl("InnerContainer"); RadGrid attachmentsGrid = aspPanel.FindControl("Attachments_RadGrid"); RadScriptManager1.RegisterPostBackControl(attachmentsGrid); // Problem is here}rgReport.MasterTableView.CommandItemSettings.ShowExportToCsvButton = (bool)resultsDT.Rows[0]["ShowExportToCsvButton"];
rgReport.MasterTableView.CommandItemSettings.ShowExportToExcelButton = (bool)resultsDT.Rows[0]["ShowExportToExcelButton"];<div> <div id="grid_container"> <form id="form0" runat="server"> <telerik:RadScriptManager id="RadScriptManager0" runat="server" /> <telerik:RadAjaxManager id="RadAjaxManager0" EnablePageHeadUpdate="false" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid0"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid0" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid ID="RadGrid0" runat="server" AllowPaging="True" AllowSorting="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource0" GridLines="Vertical" PageSize="10" Skin="Telerik"> ... </telerik:RadGrid> </form> </div></div><div style="display:none;"> <div id="grid_container"> <form id="form0" runat="server"> <telerik:RadScriptManager id="RadScriptManager0" runat="server" /> <telerik:RadAjaxManager id="RadAjaxManager0" EnablePageHeadUpdate="false" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid0"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid0" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid ID="RadGrid0" runat="server" AllowPaging="True" AllowSorting="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource0" GridLines="Vertical" PageSize="10" Skin="Telerik"> ... </telerik:RadGrid> </form> </div></div><script type="text/javascript"> function openGrid() { jQuery.colorbox({ innerWidth: "800", innerHeight: "350", opacity: 0.5, inline: true, scrolling: false, href: "#grid_container" }); } </script>