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

Problem with Grid Export

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Nov 2012, 09:33 PM
We use several radGridViews in our project and have often included an export button to push the content of the grids to Excel. Our users love the feature.

Recently we discovered a problem when you have a combobox column.  It seems to be trying to convert the display string to the type of the column during the export.  It's difficult to explain so I have prepared a small demo of the problem:

https://www.dropbox.com/s/4zkr5ofgmyfbgtt/radGridViewErrorTest.zip

if you try to export the data it will throw an error saying that the 'String must be exactly one character long'.  For combo boxes that use an integer as the selected value instead of a char (like this example does) the message will ready 'Input string not in correct format'.

Is there a better way to do combo box columns or the export so that this error can be avoided?

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 03 Dec 2012, 03:55 PM
Hi Michael,

Indeed, there was a bug when you try to export GridView's ComboBoxColumn. Fortunately the fix is already available in our latest release (Q3 SP1 2012). You can download it from your Telerik's account. I have tested your project with our latest binaries and everything works as expected. 

Greetings,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or