New to Kendo UI for jQuery? Download free 30-day trial

Minus Sign Shows to the Right of Negative Numbers When Using Right-to-Left (RTL) Languages

Environment

Product Progress® Kendo UI® for jQuery
Operating System All
Browser All
Preferred Language JavaScript

Description

I'm using right-to-left languages in my project and when working with negative numbers, the minus sign appears to the right of the digits instead of to their left.

Solution

Utilize and modify the number format pattern in the Kendo UI culture which is in use.

kendo.culture().numberFormat.pattern[0] = "n-";

For the full implementation of the approach, refer to this Dojo example.

See Also

In this article