Hello friends - I am using the trial of Telerik and am interested to see if it will meet my need of converting 5 radgrids stacked on top of each other into ONE pdf.
My page set-up is like this
Grid1
Grid2
Grid3
Grid4
And I want my pdf to be generated just like this - no added buffering or whitespace. How can this be done'?
4 Answers, 1 is accepted
By RadGrid are you referring to RadGrid for ASP.NET AJAX? If so, you can take a look at our ClientExportManager example that demonstrates how to export HTML elements to PDF in a WYSIWYG manner. Keep in mind that this approach will export only the visible elements.
I've also attached a sample project similar to this demo but with multiple RadGrids.
If you are not referring to RadGrid for ASP.NET AJAX export to PDF, I will kindly ask you to provider more information on your scenario and what you wish to achieve.
Regards,
Polya
Progress Telerik
@Polya - Yes, that is what I was referencing, the RadGrid for Asp.net AJAX.
I see this .zip would work for a dynamically created radgrid but what about in my case where I already have the radgrids on the page?
They are named:
<telerik:RadGrid ID="gvOne" Font-Bold="True" AutoGenerateColumns="false" runat="server" CssClass="Grid" AllowMultiRowSelection="True" >
<telerik:RadGrid ID="gvTwo" Font-Bold="True" AutoGenerateColumns="false" runat="server" CssClass="Grid" AllowMultiRowSelection="True" >
<telerik:RadGrid ID="gvThree" Font-Bold="True" AutoGenerateColumns="false" runat="server" CssClass="Grid" AllowMultiRowSelection="True" >
<telerik:RadGrid ID="gvFour" Font-Bold="True" AutoGenerateColumns="false" runat="server" CssClass="Grid" AllowMultiRowSelection="True" >
<telerik:RadGrid ID="gvFive" Font-Bold="True" AutoGenerateColumns="false" runat="server" CssClass="Grid" AllowMultiRowSelection="True" >
And as your example shows, I want them in the pdf one on top of another.
Hello Johnathan,
The example uses a server loop to allow for easy changing of the number of grids. Ultimately, RadClientExportManager works with the DOM in the browser, so it does not matter how the grids are created/declared.
To set where pages break, follow this article: https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/pdf-multi-page-export.
You can find attached an example. It still creates the grids programmatically for brevity, but this is not relevant.
Regards,
Progress Telerik