New to Kendo UI for jQueryStart a free 30-day trial

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

Environment

ProductProgress® Kendo UI® for jQuery
Operating SystemAll
BrowserAll
Preferred LanguageJavaScript

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.

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

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

See Also