
function
Sys$_Application$add_init(handler)
I think maybe what is happening is that part of what is needed to make the RadXmlHttpPanel work correctly is coming within the response AFTER the end tag for the ajaxified panel. So after the postback, my browser is ignoring some of the javascript needed to properly wire up or initialize the RadXmlHttpPanel.
Is there a way to dynamically load a RadXmlHttpPanel inside an ajaxified panel without getting this error?
Thank you in advance for any help you can provide,
Mike


<
Columns>
<telerik:GridTemplateColumn HeaderText="SlNo">
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" Width="4%" />
<ItemStyle HorizontalAlign="Center" Width="4%" />
<ItemTemplate>
<%
# this.rgByAirline.CurrentPageIndex * this.rgByAirline.PageSize + Container.ItemIndex + 1%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Recipe_Id" HeaderText="Recipe_Id" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Recipe">
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="true" Width="96%" />
<ItemStyle HorizontalAlign="Left" Width="96%" />
<ItemTemplate>
<asp:LinkButton ID="lnkRecipe" runat="server" ToolTip="Click here to see details of the Recipe"
CommandName="PopupWindow" OnClientClick="return PopupWindow(this);" Text='<%#Eval("Recipe_Description") %>'></asp:LinkButton>
<asp:Label ID="ltrRecipeId" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem,"Recipe_Id") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
I want to get the Recipe_Id in the javascript PopupWindow(this);
function PopupWindow(anc) {
debugger;
var rowIndex = anc.parentElement.parentElement.rowIndex;
var grdRowNo = Number(isNaN(rowIndex) ? 0 : rowIndex) + 1;
var strTransLblId = 'ctl00_CphMaster_rgByAirline' + ((grdRowNo <= 9) ? '_ctl00_ctl0' : '_ctl00_ctl') + grdRowNo + '_ltrRecipeId';
var intRecipeId = Number(document.getElementById(strTransLblId).innerText);
var oWnd = radopen("FKMS_MMS_Recipe_Detail_Popup.aspx?intRecipeId=" + intRecipeId, "RadWindowPopup");
oWnd.setSize(725, 600);
return false;
}
I got the row number correctly.
But it shows null reference exception in the following line.
var intRecipeId = Number(document.getElementById(strTransLblId).innerText);
Please help urgently.
<telerik:RadScriptManager ID="Main_RadScriptManager" runat="server" /> <telerik:RadAjaxManager ID="Main_RadAjaxManager" runat="server" > <AjaxSettings></AjaxSettings> <ClientEvents OnRequestStart="OnRequestStart" /> </telerik:RadAjaxManager> <telerik:RadFormDecorator ID="Main_RadFormDecorator" runat="server" DecoratedControls="All" Skin="Office2007" /> <telerik:RadStyleSheetManager ID="Main_RadStyleSheetManager" runat="server"> </telerik:RadStyleSheetManager> <telerik:RadCodeBlock ID="Main_RadCodeBlock" runat="server"> <script type="text/javascript"> function OnRequestStart(sender, args) { if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) { args.set_enableAjax(false); } } </script> </telerik:RadCodeBlock> <asp:UpdatePanel ID="Master_UpdatePanel" runat="server" UpdateMode="Conditional" > <ContentTemplate> <asp:ContentPlaceHolder ID="Popup_ContentPlaceHolder" runat="server" > </asp:ContentPlaceHolder> </ContentTemplate> </asp:UpdatePanel><asp:Content ID="Content2" ContentPlaceHolderID="Popup_ContentPlaceHolder" runat="Server"> <telerik:RadSplitter ID="InnerRadSplitter" runat="server" Height="560px" Width="100%" Orientation="Horizontal" ResizeMode="AdjacentPane" ResizeWithParentPane="true" Skin="Vista"> <telerik:RadPane ID="SearchRadPane" runat="server" MaxHeight="150" MinHeight="70" Scrolling="Y" Width="100%"> <div class="panel message info"> </div> </telerik:RadPane> <telerik:RadSplitBar ID="SearchRadSplitBar" runat="server"> </telerik:RadSplitBar> <telerik:RadPane ID="ResultRadPane" runat="server" Scrolling="None"> <telerik:RadGrid ID="grdData" AllowPaging="false" AllowSorting="false" runat="server" AutoGenerateColumns="false" Width="100%" Height="100%" Skin="Vista" GridLines="None" OnItemCreated="grdData_ItemCreated" OnItemCommand="grdData_ItemCommand"> <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true"> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"> </Scrolling> </ClientSettings> <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"> <Excel Format="ExcelML" /> </ExportSettings> <MasterTableView AutoGenerateColumns="false" Width="100%" CommandItemDisplay="Top"> <NoRecordsTemplate> <div style="text-align: center; font-weight: bold"> NO_INFO_AVLBL</div> </NoRecordsTemplate> <CommandItemTemplate> <telerik:RadToolBar ID="ReportGenerator_ToolBar" runat="server" Width="100%" EnableRoundedCorners="true" EnableShadows="true" Skin="Vista" OnButtonClick="ReportGenerator_ToolBar_ButtonClick"> <Items> <telerik:RadToolBarButton Text="Export" Value="Excel_Export" CommandName="ExportGrid" > </telerik:RadToolBarButton> </Items> </telerik:RadToolBar> </CommandItemTemplate> </MasterTableView> </telerik:RadGrid> </telerik:RadPane> <telerik:RadPane ID="FooterRadPane" runat="server" Height="70" Scrolling="None" Width="100%" Locked="true"> <div class="mainsection buttons-section" style="margin: 5px;"> <asp:Button ID="btn_ReportGeneratorRun" runat="server" Text="Search" class="button button-blue" OnClick="btn_ReportGeneratorRun_Click" Width="80px" /> </div> </telerik:RadPane> </telerik:RadSplitter></asp:Content>protected void grdData_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item.ItemType == GridItemType.CommandItem) { RadToolBar ReportGenerator_ToolBar = (RadToolBar)e.Item.FindControl("ReportGenerator_ToolBar"); RadToolBarItem Excel_Export = ReportGenerator_ToolBar.FindItemByValue("Excel_Export"); RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(Excel_Export); } }protected void ReportGenerator_ToolBar_ButtonClick(object sender, RadToolBarEventArgs e) { string ErrorMessage = ""; try { //--------------------------------------- if (e.Item.Value == "Excel_Export") { grdData.ExportSettings.FileName = DateTime.Today.ToString("dd.MM.yyyy"); grdData.ExportSettings.IgnorePaging = true; grdData.ExportSettings.OpenInNewWindow = true; grdData.MasterTableView.ExportToExcel(); } //--------------------------------------- } catch (Exception ex) { ErrorMessage += ex.Message; } }