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

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

1 Answer 628 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 22 Jun 2015, 07:58 PM

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,

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 Jun 2015, 11:35 AM
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
Tags
Grid
Asked by
Julian
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or