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

ExportPdf GridTemplateColumn weirdness

4 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jms
Top achievements
Rank 1
jms asked on 04 Nov 2010, 05:34 PM
Code is as follows:

<Columns>
 <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Seminar" UniqueName="Seminar">
  <ItemStyle Width="40%" />
  <ItemTemplate>
   <asp:HyperLink ID="rgtcTitle" runat="server" /><br />
   <asp:Label ID="rgtcLoc" runat="server" /><br />
   <asp:Label ID="rgtcDate" runat="server" />   <asp:Label ID="rgtcTime" runat="server" /><br />
  </ItemTemplate>
 </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Speakers" UniqueName="Speakers">
  <ItemStyle Width="40%" />
  <ItemTemplate>
   <asp:Label ID="rgtcSpeakers" runat="server" /><br />
  </ItemTemplate>
 </telerik:GridTemplateColumn>
 <telerik:GridCheckBoxColumn DataField="Rcr" DataType="System.Boolean" HeaderText="Rcr" SortExpression="Rcr" UniqueName="Rcr">
 </telerik:GridCheckBoxColumn>
</Columns>


The issue is when I export to PDF the First gridTemplateColumn "reorders" itself.   the Hyperlink gets moved to the bottom of the 2 labels.  EVERYTHING else is GREAT..

Any help would be appreciated.

Jimm

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Nov 2010, 03:03 PM
Hello James,

Can you please try to temporary set ExportOnlyData to false? Let me know whether this helps.

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
jms
Top achievements
Rank 1
answered on 08 Nov 2010, 05:04 PM
Export only data = false  generates the following 

Telerik.Web.Apoc.ApocException: internal-destination or external-destination must be specified in basic-link
  at Telerik.Web.Apoc.Fo.Flow.BasicLink.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

-- the stack trace.

Little more info the hyper link actually goes nowhere just used to pop up a rad window in modal form.
I have a work around, however its rather hack-ish.   I have both a label and a hyperlink and turn one on depending on the view export or web.  can i get a "real" fix for this or will hack-ish have to hit production... 

jimm
0
Daniel
Telerik team
answered on 11 Nov 2010, 11:04 AM
Hello Jimm,

This error most probably means that you have an anchor element whose href attribute is set to "#".
<a href="#">add</a>

If this is so, I recommend that you just remove the href attribute.
<a>asd</a>

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
Jasmin Edwin
Top achievements
Rank 1
answered on 14 Mar 2011, 07:36 AM
Hi,

It's working good.



Regards,
Jasmin.
Tags
Grid
Asked by
jms
Top achievements
Rank 1
Answers by
Daniel
Telerik team
jms
Top achievements
Rank 1
Jasmin Edwin
Top achievements
Rank 1
Share this question
or