Setting borders (left,right,top,bottom) on Export to excel (HTML)

2 posts, 0 answers
  1. Julian
    Julian avatar
    62 posts
    Member since:
    Apr 2015

    Posted 22 Jun 2015 Link to this post

    I'm exporting a grid to Excel (HTML format) and i Need to have more control over the borders.

     

    For example If I have columns "A","B", and "C" and I do not want to see the B's right border, which I guess you could also assume was C's left border.

    How can I, upon exporting to excel from the rad grid, set this properly.

    I've created the desired look in EXCL and attached a screen shot.

     

    Thanks,

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 25 Jun 2015 Link to this post

    Hi Julian,

    You could apply custom styles that will be available only in when exporting to Excel by following the approaches documented in the following help article:
    As you will notice, you could add borders to each cell within the OnExportCellFormatting event handler, which might be the easiest solution for your requirement.

    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