Hi Ros,
Query #1: In the tutorial you have reference to the standard numeric format strings and 'D' format is for decimal link
SfNumericTextBox parses the value using decimal.ToString(String,IFormatProvider) and double.ToString(String,IFormatProvider) methods for Decimal and Double parsing modes respectively. decimal.ToString(format,NumberFormat) will not accept D,X & R values and double.ToString(format,NumberFormat) will not accept D & X values in standard numeric formats as format parameter. So it throws format exception while setting the string "D". Please refer the following Microsoft msdn links,
https://msdn.microsoft.com/en-us/library/kfsatb94(v=vs.110).aspxhttps://msdn.microsoft.com/en-us/library/fzeeb5cd(v=vs.110).aspxQuery #2: So how can i setup format for integer digits with optional negative sign?
We have prepared a sample to format value as integer digits with optional negative sign by setting FormatString="N0" and MaximumNumberDecimalDigits="0". FormatString N0 indicates that it accepts numeric value and works similar to numeric format string D. Setting MaximumNumberDecimalDigits=0 will restrict decimal digits on lost focus(else ".00" will appear based on Culture.NumberFormat.NumberDecimalDigits). Optional negative sign is accepted by default so you can enter negative sign when required. Kindly download the sample from following link,
Sample:
DecimalNegative.zipPlease let us know whether the provided sample meets your requirement or not.
Regards,
Jessie