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

Export Grid into HTML Page in specific format to Print it

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rahaf
Top achievements
Rank 1
rahaf asked on 31 May 2015, 04:43 PM

hi dear,
i want to thank you about this work :)  because  it is very well.
kindly your support to provide me with an example that print radgrid into html pages and keep the header of grid because i want this html page specific design such as this page should have an image before i put radgid elements then put some radgrid elements then put again image and repeate it again for all items in radgrid.
also i want to ask you if i have radgrid with paging, can i get elements from each page seperately.

can you support me with example of code for both two above problemsvery quickly. 

Thank you a lot.

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 03 Jun 2015, 01:46 PM
Hello Rahaf,

Although that there is no print functionality in RadGrid, you can use the generated HTML of the control and use the browser's print functionality for achieving the desired result. I could suggest that you take a look at the following forum threads and Code Library:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
rahaf
Top achievements
Rank 1
answered on 05 Jun 2015, 09:12 PM

Thank you dear for your reply,

But i want to tell you that this code print only one page that i already access on it and i want to print each page in different page as this action done when export radgrid to pdf file.

please your kind support to do this work very quickly.

0
Konstantin Dikov
Telerik team
answered on 10 Jun 2015, 12:12 PM
Hi,

If you have enabled paging and you need to print all the rows, the only possible way for achieving this is to disable the paging and allow the grid to render all its records. With enabled paging, only the records on the current page will be rendered and will be available. 

I would also like to point out that printing HTML content is a browser feature and RadGrid could not have any control over it and as I have mentioned, the only way to render the HTML for all rows is to temporary disable the paging.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
rahaf
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
rahaf
Top achievements
Rank 1
Share this question
or