Hello, I use CurrencyEdit and its not allowing to enter more than {9.2} digits. Ex:999,999,000.00
But, I need to enter more digits, what do I need to change to the below Xaml?
<igEditors:XamCurrencyEditor PromptChar=""Format="###,##0.00;(###,##0.00)"ValueType="{x:Type sys:Double}"NullText="0"InvalidValueBehavior="RetainValue">
I have the same problem. I need to allow up to 12 digits, not counting the decimals. According to your statement regarding Double, it should work, but it doesn't.
I am able to type more than 9 characters into the editor if I set the Mask accordingly, but when I press Enter or focus away from the control, the value is lost if it contains more than 9 digits. Anything up to 9 digits, and the value is preserved in the cell. I am trying XamNumericEditor, XamCurrencyEditor, XamMaskEditor, as well as different data types (double, Int64, currency, etc.)... It makes no difference.
Here is my test control, which is part of a XamDataGrid. Any help will be very appreciated:
<ig:Field Name="Dollars" ><ig:Field.Settings><ig:FieldSettings AllowEdit="True" EditAsType="{x:Type sys:Double}"><ig:FieldSettings.EditorStyle><Style TargetType="{x:Type ig:XamCurrencyEditor}" ><Setter Property="Mask" Value="{}{double:12.0}" /><Setter Property="Format" Value="C0" /></Style></ig:FieldSettings.EditorStyle></ig:FieldSettings></ig:Field.Settings></ig:Field>
Krasimir, Thanks for your response. Yes, i see Mask and format.
<Setter Property="Format" Value="###,##0.0000;-###,##0.0000" /><Setter Property="Mask" Value="{}{double:-19.4}" />
Hello Selva,
I am checking if this is still an issue for you.
Please if you require any assistance on the matter do not hesitate to ask me.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
You can solve you issue by setting the Mask property of the XamCurrencyEditor. The mask for currency is {currency:-i.f:c} where i and f in i.f specify the number of digits in the integer and fraction portions respectively. The :c is optional and if specifies that the inputting of the value should be done continuous across fraction and integer portions.”-“ is also optional and indicates whether negative values are allowed.
Here is an example how to set the Mask proprety so you can enter larger values like: 999,999,999,000.00000 :
Mask="{}{currency:12.5}"
You can learn more about masks at the link below: http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamEditors_Masks.html
Please let me know if this is what you needed and if you require any further assistance on the matter.