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

2 posts, 0 answers
  1. ShareDocs
    ShareDocs avatar
    91 posts
    Member since:
    Oct 2012

    Posted 29 May 2013 Link to this post



    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?

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    717 posts

    Posted 03 Jun 2013 Link to this post

    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?
Back to Top