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

RadGrid Export word highlighting

2 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Corey
Top achievements
Rank 1
Corey asked on 20 Jun 2008, 03:09 PM
I need to see if anyone has any input or help they can give me.  I am using the export capabilities of the RadGrid and it exports fine but I need to find out if I can get any word highlighting that I have built into the dataset to be exported through the RadGrid export functions.

I am doing a regex search for words in a particular column in the dataset.  Then I wrap that text in a span tag with css to make word appear highlighted.  Then I bind it to the radgrid.

I would have thought that since the datatable had the html within the column information before it is bound to the radgrid it would show up in the exported documents of at least Word or Excel, and hoped it would for PDF as well but it is not showing.  Does anyone have any thoughts or ideas I might try to fix this problem.

Thanks,

Corey Hambrick

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jun 2008, 06:14 AM
Hi,

Try setting  the ExportOnlyData  property to false.

CS:
 RadGrid1.ExportSettings.ExportOnlyData = false
        RadGrid1.MasterTableView.ExportToExcel();  


Thanks
Shinu.
0
Daniel
Telerik team
answered on 23 Jun 2008, 06:15 AM
Hi Corey,

Please take a look at the following article. It describes the way you can handle this case.
Grid Export - Tips and Tricks

Greetings,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Corey
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or