Hi,
I would like to use either the Numeric or masked control for data input. The requirements are:
How can I achieve this and what is the best control to use for this?
Graham
The XamWebNumericEditor always presents its numeric value according the current regional settings.
Maybe it'll be better for you to use XamWebMasked editor instead. Here is an example:
<webEditors:XamWebMaskedEditor x:Name="mEditor" Height="30" Width="200" Mask="9999" NullText="Enter a value: (2000-2050)" />
The value property will be string and you'll have to convert it and check if the new value is in the correct range.
Thanks for the reply Doychin,
There is one slight problem - the numeric values are not currency nor do they require formatting with punctuation. What I now have is "2'050" instead of the hoped-for "2050". Seems like the system formatting is getting involved here.
Any suggestions?
Hello GrahamPartnerRe,
You can use this example:
<
webEditors:XamWebNumericEditor x:Name="nEditor" Height="30" Width="200" ValueType="System:Int32" Minimum="2000" Maximum="2050" NullText="Enter a number" />
Regards,
Doychin Dochev