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

Formatting a CommandItemTemplate when exporting to Excel

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 07 Aug 2013, 05:36 PM
Hello

I am using an old version of RadGrid (2008 q3) but i hope you will still be able to help me.

The grid contains a CommandItemTemplate which is exported to excel. How do i get a handle on the CommandItemTemplate before the grid is exported to apply formatting to it? Is there a way to format it using the grid's css file? However I would rather know a way for apply formatting directly in the code behind as my skin styles are not being applied to the grid on export anyhow

thanks in advance for your help

1 Answer, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 12 Aug 2013, 01:30 PM
Hi Andieje,

You could not use the grid's css to format the grid. Please check out the following help article which elaborates more on styling rows/cells. I am afraid that you could not change the appearance of the CommandItemTemplate.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or