or
<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" ShowToggleImage="True" Style="vertical-align: middle;" OnClientDropDownOpened="OnClientDropDownOpenedHandler" EmptyMessage="Choose a destination" ExpandAnimation-Type="None" CollapseAnimation-Type="None"> <ItemTemplate> <div id="div1"> <telerik:RadTreeView runat="server" ID="RadTreeView1" OnClientNodeClicking="nodeClicking" Width="100%" Height="140px"> <Nodes> </Nodes> </telerik:RadTreeView> </div> </ItemTemplate> <Items> <telerik:RadComboBoxItem Text="" /> </Items> </telerik:RadComboBox>string Path = "" ; foreach (RadComboBoxItem myItem in RadComboBoxIn.Items) { RadTreeView myTree = (RadTreeView)myItem.FindControl("RadTreeView1"); Path = myTree.SelectedNode.FullPath; }<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DetailInfos.aspx.cs" Inherits="waPMHI.dlg.DetailInfos" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <telerik:RadCodeBlock ID="RadCodeBlockInfo" runat="server"> <script type="text/javascript" language="javascript"> function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; } function CloseWindow() { var oWindow = GetRadWindow(); oWindow.close(); } function AddAttachment() { var oBrowserWnd = GetRadWindow().BrowserWindow; setTimeout(function() { var oWnd = oBrowserWnd.radopen("../dlg/GeneralUploader.aspx", "Upload"); oWnd.SetUrl(oWnd.GetUrl()); oWnd.add_close(OnClientClose); }, 300); } function OnClientClose(oWnd) { // Nach dem Schliessen eines Fensters: AjaxRequest oWnd.remove_close(OnClientClose); $find("<%= infoManager.ClientID %>").ajaxRequest("AddAttachmentClose"); } <!-- [...] more JS --> </script> </telerik:RadCodeBlock></head><body class="dlgInfos" onkeypress="Escape(event);"> <form id="form1" runat="server"> <telerik:RadWindow ID="DetailInfo" runat="server" SkinID="SingletonSkin" /> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadFormDecorator ID="RadFormDecorator" runat="server" DecoratedControls="Buttons" /> <telerik:RadAjaxManager ID="infoManager" runat="server" OnAjaxRequest="InfoManager_AjaxRequest" /> <table width="100%" cellpadding="0px" cellspacing="0px"> <tr> <td> <asp:UpdatePanel ID="FormPanel" runat="server" UpdateMode="Conditional"> <ContentTemplate><!-- More Elements [...] --> <asp:Button ID="btnAddAttachment" Enabled="false" runat="server" Text="<%$Resources:TextResources, ID_MAIL_ADDATTACHMENT%>" OnClick="btnAddAttachment_Click" /> <!-- More elements [...] --> </ContentTemplate> </asp:UpdatePanel> <br /> <telerik:RadGrid runat="server" Width="100%" ID="attGrid" ShowHeader="false" AutoGenerateColumns="true" OnNeedDataSource="infoGrid_NeedDataSource"> </telerik:RadGrid> </form></body></html>PrintEditor.ExportToPdf();
When I do I can the attached error. The thing is, when I copy the html code from the editor and hard code it in to the <Content></Content> tags it works fine.protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem dataItem = (GridDataItem)e.Item; rev1Sum += CorrectlyParseString((dataItem["Rev1"].FindControl("Rev1Label") as Label).Text.ToString()); } else if (e.Item is GridFooterItem) { GridFooterItem footer = (GridFooterItem)e.Item; (footer["Rev1"].FindControl("Rev1Total") as RadNumericTextBox).Value = Double.Parse(rev1Sum.ToString()); } }