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

RadPrintDocument from a grid wrong format when Right to left = true in grid

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ShareDocs
Top achievements
Rank 1
ShareDocs asked on 29 May 2013, 07:50 AM


Hi, I have a grid that is set Right to left.
In one of the columns I can have negative numbers, so I had to set its string format as: {0:#,##0.00;#,##0.00-} in order to see the minus sing in the left side of the number (like this -100 instead of 100-)

when I print this grid, the negative numbers of this column are shown wrong (100-)

the only solution I found at the moment is to set the FormatString = "{0:n}"; before doing the print, and fter doing the print setting back the FormatString = "{0:#,##0.00;#,##0.00-}"; to look it well in the gridView.

any suggestions?

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 03 Jun 2013, 08:59 AM
Hi Lior,

Thank you for writing.

The negative number format is the same as in a standard Microsoft NumericUpDown. We are using the standard .NET means for handling Right-To-Left formats. The difference between the way RadGridView displays the value and how the print looks like comes from the fact the the printing logic does not set a StringFormat.FormatFlag when the cell is printed. I have logged this in our Public Issue Tracking System - PITS. You can track the progress of this issue, subscribe for status changes and add your vote/comment to it on the following link - PITS Issue. Until this issue is resolved you can use the workaround you have found yourself.

I have also updated your Telerik Points for bringing this issue to our attention.

Should you have further questions, I would be glad to help.

Regards,
Ivan Petrov
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
GridView
Asked by
ShareDocs
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or