This is a migrated thread and some comments may be shown as answers.

PDF Export Issue

8 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 22 Mar 2010, 03:53 PM
Hi,
    I am having the Grid which has number of NestedGrid's. Each Nested grid has its own export button. When i tried to export the data of one of the nested grid. I am getting the following error. I cannot point out the following error.


The '*' character, hexadecimal value 0x2A, cannot be included in a name.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: The '*' character, hexadecimal value 0x2A, cannot be included in a name.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[XmlException: The '*' character, hexadecimal value 0x2A, cannot be included in a name.]
   System.Xml.ValidateNames.ThrowInvalidName(String s, Int32 offsetStartChar, Int32 offsetBadChar) +255
   System.Xml.ValidateNames.ParseQNameThrow(String s, String& prefix, String& localName) +49
   System.Xml.Xsl.Runtime.XmlQueryRuntime.ParseTagName(String tagName, Int32 idxPrefixMappings, String& prefix, String& localName, String& ns) +21
   System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartComputed(XPathNodeType nodeType, String tagName, Int32 prefixMappingsIndex) +50
   System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeComputed(String tagName, Int32 prefixMappingsIndex) +14
   <xsl:template name="process-style">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, IList`1 style) +1709
   <xsl:template match="html:div">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +566
   <xsl:template name="process-table-cell">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +6251
   <xsl:template match="html:td">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +114
   <xsl:template name="process-common-attributes-and-children">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +122
   <xsl:template match="html:tr">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +106
   <xsl:template name="process-common-attributes-and-children">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +122
   <xsl:template match="html:thead">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +114
   <xsl:template name="process-table">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +6994
   <xsl:template match="html:table">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +125
   <xsl:template match="html:body">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +2675
   <xsl:template match="html:html">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +186
   <xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator ) +12113
   Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +91
   Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +28
   System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) +88
   System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) +121
   System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) +47
   System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) +46
   System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) +52
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1678
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8673113
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +161
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +825
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


-Thanks

8 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Mar 2010, 04:38 PM
Hello John,

The reason for this exception is depicted in the PDF export help topic.
PDF export help topic

Let me know if you need further assistance.

Best regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
John John
Top achievements
Rank 1
answered on 23 Mar 2010, 10:50 AM
Hi,
      I already refered the help topic. But i could not find the solution. I used DIV related statements in EditFormTemplate.Even though i removed compleately from the EditFormTemplate section, i am getting the same error. Here i gave mu aspx code for your reference

<

telerik:RadGrid EnableLinqExpressions="false" ID="RadGrid1" runat="server"

 

 

Skin="Vista" Width="100%" AllowSorting="true" AutoGenerateColumns="false" AllowMultiRowSelection="true"

 

 

AllowFilteringByColumn="true" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender" OnItemCreated="RadGrid1_ItemCreated" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand">

 

 

<ExportSettings IgnorePaging="True" OpenInNewWindow="True" ExportOnlyData="true">

 

 

<Pdf AllowCopy="True" PageTitle="Billing Report" Keywords="None" Subject="RadGrid Export"

 

 

Author="Anonymous" PageHeight="8.5in" PageWidth="14in" Title="Billing Report" />

 

 

</ExportSettings>

 

 

<PagerStyle Mode="NumericPages"></PagerStyle>

 

 

<SortingSettings EnableSkinSortStyles="false" />

 

 

<ClientSettings AllowDragToGroup="true">

 

 

<Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="true"

 

 

ClipCellContentOnResize="false" EnableRealTimeResize="false" />

 

 

<Selecting AllowRowSelect="true" />

 

 

<ClientEvents OnPopUpShowing="PopUpShowing" />

 

 

</ClientSettings>

 

 

<HeaderStyle CssClass="HeaderStyle" />

 

 

<ItemStyle CssClass="ItemStyle" />

 

 

<AlternatingItemStyle CssClass="AlternatingItemStyle" />

 

 

<MasterTableView TableLayout="Fixed" EditMode="PopUp" DataKeyNames="CompanyID" AllowFilteringByColumn="true"

 

 

Name="PreFill" GroupLoadMode="Client" CommandItemDisplay="Top" AllowMultiColumnSorting="True">

 

 

<CommandItemTemplate>

 

 

<table width="100%" class="RadCommandTable" style="padding: 0px;">

 

 

<tr>

 

 

<td align="center">

 

 

<asp:Button ID="btnExport" CommandName="lnkExport" runat="server" Text="FExport" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</CommandItemTemplate>

 

 

<NoRecordsTemplate>

 

 

<div style="background-color: Silver; height: 20px; color: Red; text-align: center;

 

 

font-size: 10pt; font-family: Verdana; font-weight: bold;">

 

 

<i>No issuer prefills stored for this firm.</i>

 

 

</div>

 

 

</NoRecordsTemplate>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"

 

 

HeaderText="Options" AllowFiltering="false" Reorderable="false" Groupable="false" HeaderStyle-Width="13%">

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="lnkEdit" CommandName="Edit" Text="Edit" runat="server"></asp:LinkButton>

 

 

<asp:HyperLink ID="lnkDel" Text="Del" runat="server"></asp:HyperLink>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="FillCompany" SortExpression="FillCompany"

 

 

DataField="FillCompany" UniqueName="FillCompany" HeaderStyle-Width="15%" GroupByExpression="FillCompany Group By FillCompany"

 

 

AllowFiltering="true">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblFillComapny" Text='<%# Eval("FillCompany") %>' runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox NoWrap="true" Font-Names="Arial" Font-Size="9px" ID="PreFillComboBox"

 

 

AutoPostBack="true" Height="100px" Width="100%" runat="server" OnSelectedIndexChanged="PreFillComboBox_IndexChanged">

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Company Name" SortExpression="Company" UniqueName="Company"

 

 

HeaderStyle-Width="25%" GroupByExpression="Company Group By Company" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblCompName" Text='<%# GetCompanyAndCommonName(Container.DataItem) %>'

 

 

runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Address 1" SortExpression="Address1" UniqueName="Address1"

 

 

HeaderStyle-Width="13%" GroupByExpression="Address1 Group By Address1" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblAddress1" Text='<%# Eval("Address1") %>' runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="City" SortExpression="City" UniqueName="City"

 

 

HeaderStyle-Width="14%" GroupByExpression="City Group By City" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblCity" Text='<%# Eval("City") %>' runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="State" SortExpression="State" UniqueName="State"

 

 

HeaderStyle-Width="5%" GroupByExpression="State Group By State" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblState" Text='<%# Eval("State") %>' runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Postal Code" SortExpression="Zip" UniqueName="Zip"

 

 

HeaderStyle-Width="12%" GroupByExpression="Zip Group By Zip" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblZip" Text='<%# Eval("Zip") %>' runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

<EditFormSettings EditFormType="Template">

 

<%

--<PopUpSettings Modal="true" Height="500px" Width="740px" ScrollBars="Auto" />--%>

 

 

<PopUpSettings Modal="true" ScrollBars="Auto" />

 

 

<FormTemplate>

 

 

<div align="center">

 

 

<div class="CompanyRadGridEditPage">

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="sectionhdr" style="background-color: #ffffc0; border-bottom: 1px solid black;"

 

 

align="left" colspan="3">

 

Prefill Definition:

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" width="19%">

 

 

</td>

 

 

<td class="spacerrow" width="2%">

 

 

</td>

 

 

<td class="spacerrow" width="79%">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3" align="left">

 

 

<asp:ValidationSummary ID="vs01" BorderStyle="Solid" BorderWidth="1px" BorderColor="#AAAAAA"

 

 

BackColor="#F0F0F0" ShowSummary="True" HeaderText="<b><i><span style=color:black;>The following errors were found on save:</span></i></b>"

 

 

runat="server" DisplayMode="List"></asp:ValidationSummary>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

fill Type:

 

</td>

 

 

<td />

 

 

<td align="left">

 

 

<asp:DropDownList ID="ctd" runat="server" OnSelectedIndexChanged="ddlOnChange" AutoPostBack="True">

 

 

<asp:ListItem Selected="True" Value="0">Insurance Company</asp:ListItem>

 

 

<asp:ListItem Value="1">Third-Party Administrator</asp:ListItem>

 

 

<asp:ListItem Value="2">Managed Care Organization</asp:ListItem>

 

 

<asp:ListItem Value="3">Agent/Broker</asp:ListItem>

 

 

</asp:DropDownList>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Company Name:

 

</td>

 

 

<td align="center">

 

 

<span class="required">*</span>

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_nme" TabIndex="21" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

<asp:RequiredFieldValidator ID="rqcn" runat="server" Width="100%" InitialValue=""

 

 

ErrorMessage=":: Required 'Company Name' missing or invalid." Display="Static"

 

 

ControlToValidate="comp_nme">&nbsp;<span class="warning">*</span></asp:RequiredFieldValidator>

 

 

<asp:Button ID="btnCLU" OnClick="btnCLUC" runat="server" CssClass="btn4" Text="Company Lookup"

 

 

CausesValidation="False" Enabled="True"></asp:Button>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Common Name:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_cnm" TabIndex="21" runat="server" CssClass="data" MaxLength="30"

 

 

Columns="30"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<div id="naicdiv" runat="server">

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="spacerrow" width="19%">

 

 

</td>

 

 

<td class="spacerrow" width="2%">

 

 

</td>

 

 

<td class="spacerrow" width="79%">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Number:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_nnm" TabIndex="22" runat="server" CssClass="data" MaxLength="10"

 

 

Columns="15" Style="margin-top: 1px;"></asp:TextBox>

 

 

<span style="padding-left: 20px;">

 

 

<asp:Button ID="btnNLU" OnClick="btnNLUC" runat="server" CssClass="btn4" Text="Prefill Address"

 

 

CausesValidation="False" Enabled="True"></asp:Button></span>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Code:

 

</td>

 

 

<td align="left">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_pbc" TabIndex="22" runat="server" CssClass="data" MaxLength="32"

 

 

Columns="19"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="6">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="spacerrow" width="19%">

 

 

</td>

 

 

<td class="spacerrow" width="2%">

 

 

</td>

 

 

<td class="spacerrow" width="79%">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Address 1:

 

</td>

 

 

<td align="center">

 

 

<span class="required">*</span>

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_ad1" TabIndex="23" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

<asp:RequiredFieldValidator ID="rqa1" runat="server" Width="100%" InitialValue=""

 

 

ErrorMessage=":: Required 'Address 1' missing or invalid." Display="Dynamic"

 

 

ControlToValidate="comp_ad1">&nbsp;<span class="warning">*</span></asp:RequiredFieldValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Address 2:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_ad2" TabIndex="24" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

City:

 

</td>

 

 

<td align="center">

 

 

<span class="required">*</span>

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_cty" TabIndex="25" runat="server" CssClass="data" MaxLength="25"

 

 

Columns="15"></asp:TextBox>

 

 

<asp:RequiredFieldValidator ID="rqct" runat="server" Width="100%" InitialValue=""

 

 

ErrorMessage=":: Required 'City' missing or invalid." Display="Dynamic" ControlToValidate="comp_cty">&nbsp;<span class="warning">*</span></asp:RequiredFieldValidator>

 

 

<span class="label" style="padding-left: 20px;">State/Province:</span> <span class="required">

 

*

</span>

 

 

<asp:TextBox ID="comp_sta" TabIndex="26" runat="server" CssClass="data" MaxLength="13"

 

 

Columns="5"></asp:TextBox>

 

 

<asp:RequiredFieldValidator ID="rfst" runat="server" Width="100%" InitialValue=""

 

 

ErrorMessage=":: Required 'State/Province' missing or invalid." Display="Dynamic"

 

 

ControlToValidate="comp_sta">&nbsp;<span class="warning">*</span></asp:RequiredFieldValidator>

 

 

<asp:CustomValidator ID="cvst" runat="server" Width="100%" ErrorMessage=":: Required 'State/Province' invalid (illegal format or state code)."

 

 

Display="Static" ControlToValidate="comp_sta" OnServerValidate="ssValidateState"

 

 

ClientValidationFunction="csValidateState">&nbsp; <span class="warning">*</span></asp:CustomValidator>

 

 

<span class="label">Postal Code:</span> <span class="required">*</span>

 

 

<asp:TextBox ID="comp_zip" TabIndex="27" runat="server" CssClass="data" MaxLength="10"

 

 

Columns="11"></asp:TextBox>

 

 

<asp:RequiredFieldValidator ID="rqzp" runat="server" Width="100%" InitialValue=""

 

 

ErrorMessage=":: Required 'Postal Code' missing." Display="Dynamic" ControlToValidate="comp_zip">&nbsp;<span class="warning">*</span></asp:RequiredFieldValidator>

 

 

<asp:RegularExpressionValidator ID="rgzp" runat="server" Width="100%" ErrorMessage=":: Required 'Postal Code' invalid (illegal format)."

 

 

Display="Static" ControlToValidate="comp_zip" ValidationExpression="^\d{5}(-?\d{4})?$">&nbsp;<span class="warning">*</span></asp:RegularExpressionValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Telephone:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_phn" TabIndex="28" runat="server" CssClass="data" MaxLength="32"

 

 

Columns="15"></asp:TextBox>&nbsp;<span style="color: darkblue;">###-###-####</span>

 

<%

--<asp:regularexpressionvalidator id="rgph" Runat="server" Width="100%" ErrorMessage=":: Optional 'Telephone' invalid (illegal format)." Display="Static" ControlToValidate="comp_phn" ValidationExpression="^(\d{10}|\d{3}([.\-])\d{3}\2\d{4}|\(\d{3}\) ?\d{3}-\d{4})$">&nbsp;<span class="warning">*</span></asp:regularexpressionvalidator>--%>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<div id="veicompex" runat="server">

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="spacerrow" width="19%">

 

 

</td>

 

 

<td class="spacerrow" width="2%">

 

 

</td>

 

 

<td class="spacerrow" width="79%">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Emp Name:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_rnme" TabIndex="108" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right" title="TPA Representative's Title">

 

Emp Title:

 

</td>

 

 

<td align="center">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_rttl" TabIndex="109" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Emp Telephone:

 

</td>

 

 

<td align="left">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_rphn" TabIndex="110" runat="server" CssClass="data" MaxLength="32"

 

 

Columns="15"></asp:TextBox>&nbsp;<span style="color: darkblue;">###-###-####</span>

 

<%

--<asp:regularexpressionvalidator id="rgrp" Runat="server" Width="100%" ErrorMessage=":: Optional 'Rep's Telephone' invalid (illegal format)." Display="Static" ControlToValidate="comp_rphn" ValidationExpression="^(\d{10}|\d{3}([.\-])\d{3}\2\d{4}|\(\d{3}\) ?\d{3}-\d{4})$">&nbsp;<span class="warning">*</span></asp:regularexpressionvalidator>--%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

Emp Email:

 

</td>

 

 

<td align="left">

 

 

</td>

 

 

<td align="left">

 

 

<asp:TextBox ID="comp_reml" TabIndex="111" runat="server" CssClass="data" MaxLength="50"

 

 

Columns="50"></asp:TextBox>

 

 

<asp:RegularExpressionValidator ID="rgem" runat="server" Width="100%" ErrorMessage=":: Optional 'Rep's Email' invalid (illegal format)."

 

 

Display="Static" ControlToValidate="comp_reml" ValidationExpression="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$">&nbsp;<span class="warning">*</span></asp:RegularExpressionValidator>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<div id="network" runat="server">

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="label" align="right" width="19%">

 

Select as Network:

 

</td>

 

 

<td class="label" align="right" width="2%" />

 

 

</td>

 

 

<td class="label" style="font-size: 8pt; font-weight: normal;" align="left" width="79%">

 

 

<asp:CheckBox ID="net" runat="server" Checked="False" CssClass="chkbox" />

 

(when checked, this company data becomes the parent of a TPA network)

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">

 

 

<tr>

 

 

<td class="label" align="right" width="19%">

 

Select as Default:

 

</td>

 

 

<td class="label" align="right" width="2%" />

 

 

</td>

 

 

<td class="label" style="font-size: 8pt; font-weight: normal;" align="left" width="79%">

 

 

<asp:CheckBox ID="def" runat="server" Checked="False" CssClass="chkbox" />

 

(when checked, this company data will become the new default, and prefill the

<u>add</u>

 

policy page)

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="label" align="right">

 

 

</td>

 

 

<td align="left">

 

 

</td>

 

 

<td align="left">

 

 

<asp:Button ID="btnSave" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'

 

 

runat="server" CssClass="btn4" Text="Save Company" CausesValidation="True" Enabled="True">

 

 

</asp:Button>&nbsp;&nbsp;&nbsp;

 

 

<asp:Button ID="btnClos" CommandName="Cancel" runat="server" CssClass="btn4" Text="Cancel"

 

 

CausesValidation="False" Enabled="True"></asp:Button>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="spacerrow" colspan="3">

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<div class="RadCompsrch" id="compsrch" visible="false" runat="server">

 

 

<asp:Table ID="cstbl" runat="server" Width="100%">

 

 

<asp:TableRow>

 

 

<asp:TableCell>

 

 

<img src="images/pn.gif" alt="PostingNotice.com" border="0" align="left"/></asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell>

 

 

<hr width="100%" style="height:1px;"/>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell HorizontalAlign="Left" Font-Bold="True" Font-Size="7pt" Font-Name="Verdana">

 

Enter part of the issuing company name here:

<br>

 

 

<asp:TextBox ID="com" runat="server" Columns="41" MaxLength="80" CssClass="objspc" />

 

 

<asp:Button ID="btnGo" runat="server" OnClick="btnGoClick" Text="GO!" CssClass="btn3"

 

 

CausesValidation="False" />

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow Height="3px">

 

 

<asp:TableCell></asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell HorizontalAlign="Left" Font-Bold="True" Font-Size="7pt" Font-Name="Verdana">

 

 

<asp:Label ID="mtx" runat="server">Matching Issuer Company NAIC # - Name(s):</asp:Label><br>

 

 

<asp:ListBox ID="cnm" runat="server" SelectionMode="Single" Rows="10" Width="323"

 

 

CssClass="objspc" />

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow Height="10px">

 

 

<asp:TableCell>&nbsp;</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow>

 

 

<asp:TableCell HorizontalAlign="Center">

 

 

<asp:Button ID="btnSS" runat="server" OnClick="btnSaveSel" Text="Save Selection"

 

 

CssClass="btn4" CausesValidation="False" />

 

 

<asp:Label ID="spc" runat="server">&nbsp;&nbsp;&nbsp;</asp:Label>

 

<%

--<input type="button" value="Cancel" onclick="javascript:hideDiv('compsrch');" class="btn4" />--%>

 

 

<input type="button" id="btnCancel1" value="Cancel" runat="server" class="btn4" />

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

</div>

 

 

</div>

 

 

</div>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

So help me to point out the cause of error

-Thanks

 

0
John John
Top achievements
Rank 1
answered on 23 Mar 2010, 04:57 PM
Hi Telerik,
                  I came close with an issue. I analysed the issue by removing the filter column section especially the radcombo box used for filtering. I could export pdf by removing the following section.

ASPX
 <telerik:GridTemplateColumn HeaderText="FillCompany" SortExpression="FillCompany" 
                                                     DataField="FillCompany" UniqueName="FillCompany" HeaderStyle-Width="15%" GroupByExpression="FillCompany Group By FillCompany" 
                                                     AllowFiltering="true">  
                                                     <ItemTemplate> 
                                                         <asp:Label ID="lblFillComapny" Text='<%# Eval("FillCompany") %>' runat="server"></asp:Label>                                                           
                                                     </ItemTemplate> 
                                                     <FilterTemplate> 
                                                         <telerik:RadComboBox NoWrap="true" Font-Names="Arial" Font-Size="9px" ID="PreFillComboBox" 
                                                             AutoPostBack="true" Height="100px" Width="100%" runat="server" OnSelectedIndexChanged="PreFillComboBox_IndexChanged">  
                                                         </telerik:RadComboBox> 
                                                     </FilterTemplate> 
                                                 </telerik:GridTemplateColumn> 

CS
 // Filter controls value binding  
            if (e.Item.ItemType == GridItemType.FilteringItem)  
            {  
                RadComboBox NameComboBox;  
                NameComboBox = (RadComboBox)e.Item.FindControl("PreFillComboBox");  
                NameComboBox.Items.Add(new RadComboBoxItem("    All", "All"));  
                NameComboBox.Items.Add(new RadComboBoxItem("Insurance Companies", "0"));  
                NameComboBox.Items.Add(new RadComboBoxItem("Third-Party Administrators", "1"));  
                NameComboBox.Items.Add(new RadComboBoxItem("Managed Care Organizations", "2"));  
                NameComboBox.Items.Add(new RadComboBoxItem("Agent/Brokerage", "3"));  
                if (ViewState["PreFillName"] != null)  
                {  
                    //EnabledComboBox.Text = ViewState["txtEnabled"].ToString();  
                    NameComboBox.FindItemByText(ViewState["PreFillName"].ToString()).Selected = true;  
                }  
            } 

I hope the above code may help you to reproduce my issue. Let me know what mistake i have made from the above code.

-Thanks
0
John John
Top achievements
Rank 1
answered on 24 Mar 2010, 02:31 PM
Hi,

     Any ideas how to solve the above issue;

-Thanks
0
John John
Top achievements
Rank 1
answered on 25 Mar 2010, 09:10 AM
Hi
         Could you please any one tell me, what mistake i made in my filter combo declaration and how to solve the issue

-Thanks
0
Bruno
Top achievements
Rank 2
answered on 25 Mar 2010, 09:58 AM
Hi

this is Bruno. I have a similar scenario and it works like a rifle on my end. Maybe you have an older version?

Bruno
0
John John
Top achievements
Rank 1
answered on 25 Mar 2010, 10:36 AM
Hi,

     If so how can i manage the issue with existing version. What steps would help me to solve this issue with in this version
I am using 2009.3.1103.35 version

-Thanks
0
Bruno
Top achievements
Rank 2
answered on 25 Mar 2010, 01:41 PM
Hi

this is Bruno. I think you can remove the filter item (GridFilteringItem) on ItemCreated. In the past I used this method to remove the unneeded items (GridPagerItem, GridFilteringItem, etc)

Bruno.
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Daniel
Telerik team
John John
Top achievements
Rank 1
Bruno
Top achievements
Rank 2
Share this question
or