Hi,
I have been having some trouble with the following:
My application has a number of RadNumericTextboxes, in which decimal numbers are entered. My current (and desired) culture settings use a ',' as a decimal separator. My users want to be able to use the '.' on their numeric pad for entering it (much like calc.exe does, it accepts both ',' and '.' and enters a ',').
This does not work with the control and I don't think there is a direct way of setting this option.
If there is an option, please tell me.
As I expect there is no such option, I have written a piece of javascript to handle the OnKeyPress event:
It goes wrong on the line "sender.Value = sender.Value + ',';" is there any way of adding the ',' from javascript?
Would it be possible to add this functionality in a later version of the telerik radcontrols?
I have been having some trouble with the following:
My application has a number of RadNumericTextboxes, in which decimal numbers are entered. My current (and desired) culture settings use a ',' as a decimal separator. My users want to be able to use the '.' on their numeric pad for entering it (much like calc.exe does, it accepts both ',' and '.' and enters a ',').
This does not work with the control and I don't think there is a direct way of setting this option.
If there is an option, please tell me.
As I expect there is no such option, I have written a piece of javascript to handle the OnKeyPress event:
function Dot2Comma(sender, eventArgs) { |
var c = eventArgs.get_keyCharacter(); |
if (c == '.') { |
eventArgs.set_cancel(true); |
sender.Value = sender.Value + ','; |
} |
} |
It goes wrong on the line "sender.Value = sender.Value + ',';" is there any way of adding the ',' from javascript?
Would it be possible to add this functionality in a later version of the telerik radcontrols?