Export Grid into HTML Page in specific format to Print it

4 posts, 0 answers
  1. rahaf
    rahaf avatar
    5 posts
    Member since:
    Sep 2014

    Posted 31 May 2015 Link to this post

    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.

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 03 Jun 2015 Link to this post

    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
  3. rahaf
    rahaf avatar
    5 posts
    Member since:
    Sep 2014

    Posted 05 Jun 2015 in reply to Konstantin Dikov Link to this post

    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.

  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 10 Jun 2015 Link to this post

    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
Back to Top