Hello,
I need to format the contents of a NumericTextBox in javascript based on the DecimalSymbol and NumberSeparator properties that I get from a CRM Dynamics UserInfo object. That is, I would like to generate a format string that looks more or less like this:
"###.#,##" in the case the DecimalSymbol is ',' and the NumberSeparator is '.'
"###,#.##" in the case the DecimalSymbol is '.' and the NumberSeparator is ','
I need to be able to do this possibly without using the kendo.culture() setter, because there is no specific culture coming from CRM, it is all 'hand-made'.
I tried doing this but without setting the culture, the decimal separator is ignored.
$("#amounttxt").kendoNumericTextBox({
format: "###.#,##",
spinners: false
});
Any ideas?
Thanks in advance!
I need to format the contents of a NumericTextBox in javascript based on the DecimalSymbol and NumberSeparator properties that I get from a CRM Dynamics UserInfo object. That is, I would like to generate a format string that looks more or less like this:
"###.#,##" in the case the DecimalSymbol is ',' and the NumberSeparator is '.'
"###,#.##" in the case the DecimalSymbol is '.' and the NumberSeparator is ','
I need to be able to do this possibly without using the kendo.culture() setter, because there is no specific culture coming from CRM, it is all 'hand-made'.
I tried doing this but without setting the culture, the decimal separator is ignored.
$("#amounttxt").kendoNumericTextBox({
format: "###.#,##",
spinners: false
});
Any ideas?
Thanks in advance!