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

Radgrid Export contains <nobr> </nobr>

2 Answers 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 26 Oct 2011, 01:42 PM
Hi,

I have implemented a Radgrid in my website and i have added the following attribute to each Gridboundcolumn:

DataFormatString="<nobr>{0}</nobr>" 

The purpose of this was to resize the width of each column to the data it contains automatically as i understand there is no other way to do so.

The problem I have is that when I export the gridcontents to Excel or csv, then the <nobr></nobr> tags surround each cell's data.

Is there a way to eliminate these tags on export without having to first replace the tags in the grid contents, which in turn removes the formatting?

Regards,

Shane

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Oct 2011, 05:48 AM
Hello Shane,

Take a look at the following forum thread which discussed similar scenario.
Csv Export contains nobr tags.

Thanks,
Shinu.
0
Shane
Top achievements
Rank 1
answered on 27 Oct 2011, 08:44 AM
Hi Shinu,

Thanks for the feedback. I just realized that the Excel export is free from the problem as you explained so I will just use that option and if csv is required at a later stage I will implement the strategy that you mentioned.

Thanks again,

Shane
Tags
Grid
Asked by
Shane
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shane
Top achievements
Rank 1
Share this question
or