Hello
Have problem with negative sign in grid with right-to-left =true
the negative numeric values are displayed like:
10-
20-
300-
instead of:
-10
-20
-300
I use decimal Column
3 Answers, 1 is accepted
0
Nadya
Telerik team
answered on 18 Jun 2019, 02:04 PM
Hello, Moj,
Right-to-left mode is used for certain languages such as Arabic, where people read and write starting from the right side of the page. So having the minus sign appear to the right in the RadGridView is natural.
However, you want to set the alignment of the text from left to right in GridViewDecimalColumn with negative numbers. In this case, you can subscribe to the CellFormatting event and set RightToLeft property to false. Please refer to the following code snippet which demonstrates how to achieve the illustrated result:
I hope this information helps. If you need any further assistance please don't hesitate to contact us.
Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.