This question is locked. New answers and comments are not allowed.
Hello, the textbox does not seem to format correctly if the region is Arabic Qatar. The currency symbol for Qatar is ر.ق.
The issue seems to be the way the regular expression is built for parsing values in the textbox. In particular, the following
builder.cat('[ |')
.cat(that.groupSeparator)
.catIf('|' + that.symbol, that.symbol)
.cat(']');
The regular expression is incorrect, using [ ] indicates a range of characters. This works great if the currency symbol is a single character, but as in the case above, if the currency symbol is multi characters then the behaviour is not as expected. Instead, using the following
builder.cat('( |')
.cat(that.groupSeparator)
.catIf('|' + that.symbol, that.symbol)
.cat(')');
is the correct expression to use. We've patched our local version of telerik but it would be nice to get a hotfix or something.
Thanks!
The issue seems to be the way the regular expression is built for parsing values in the textbox. In particular, the following
builder.cat('[ |')
.cat(that.groupSeparator)
.catIf('|' + that.symbol, that.symbol)
.cat(']');
The regular expression is incorrect, using [ ] indicates a range of characters. This works great if the currency symbol is a single character, but as in the case above, if the currency symbol is multi characters then the behaviour is not as expected. Instead, using the following
builder.cat('( |')
.cat(that.groupSeparator)
.catIf('|' + that.symbol, that.symbol)
.cat(')');
is the correct expression to use. We've patched our local version of telerik but it would be nice to get a hotfix or something.
Thanks!