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

EXPORT TO PDF IN MULTICOLUMNS Problem..Is this supprted by telerik??

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SANNIDHI
Top achievements
Rank 1
SANNIDHI asked on 11 Jul 2009, 04:15 PM
Hi,

     I want to export to pdf in TelerikGrid.I am using follwing code

<

 

telerik:GridBoundColumn DataField="Partner Name" UniqueName="PartnerName" HeaderText="PartnerName"

 

 

HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Rank" UniqueName="Rank" HeaderStyle-HorizontalAlign="Center"

 

 

ItemStyle-HorizontalAlign="Right" HeaderText="Rank">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Rank1" UniqueName="Rank1" HeaderStyle-HorizontalAlign="Center"

 

 

ItemStyle-HorizontalAlign="Right" HeaderText="Rank1">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn UniqueName="Column1" InitializeTemplatesFirst="true">

 

 

<HeaderTemplate>

 

 

<table id="Tabfy08" cellspacing="0" style="width: 100%;">

 

 

<tr>

 

 

<td colspan="2" align="center">

 

 

<b>COULMNSHEADER</b>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 50%; border-style: none;" align="center">

 

 

<asp:Label ID="lblfy08" Text="Rank" runat="server" />

 

 

</td>

 

 

<td style="width: 50%; border-style: none;" align="center">

 

 

<asp:Label ID="lblesa08" Text="Rank1" runat="server" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<table cellspacing="0" width="100%" class="myTable">

 

 

<tr>

 

 

<td style="width: 50%">

 

<%

# Eval("Rank")%>

 

 

</td>

 

 

<td style="width: 50%">

 

<%

# Eval(" Rank1")%>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridTemplateColumn>

I want to export to pdf which has template columns.

For that i am using following code

 

MYGRID.ExportSettings.ExportOnlyData =

true;

 

MYGRID.ExportSettings.IgnorePaging =

true;

 

MYGRID.ExportSettings.OpenInNewWindow =

true;

 


MYGRID.MasterTableView.HierarchyDefaultExpanded =

true;

 

MYGRID.ExportSettings.ExportOnlyData =

true;

 

MYGRID.MasterTableView.ExportToPdf();

 In Button Click Event...............

But i am not getting the result of template columns in PDF..

Is Telerik Grid Support this????????????????Please Clarify this ASAP..ASAP

Thanks in Advance
SANNIDHI

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jul 2009, 04:41 PM
Hello Sannidhi,

For your convenience we created a simple demo that demonstrates how to attain the desired functionality.

Let us know if any further questions arise.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
SANNIDHI
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or