Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Problem with formattedText String/Number Format
posted

Hello Forum,

I have to Display formatted Numbers in a Grid with the following restrictions (as Example):

  • Maximum Length: 8 Signs (inclusive the Signs: minus, decimal delimiter)
  • Maximum decimal Numbers: 4

here are some guilty Examples:

  • -2345,78
  • 12345,78
  • -234,5678
  • 1234578
  • 123,5678
  • 10,0

I already tried EditorWithMask - and in EditorSettings the DataType double / decimal - with the effect, that the decimal Numbers if empty are filled up with zeros.

Using DataType string leads to unformated Values in the cell of my UltraGrid.

Does anybody have some idea what i missed?

I tried already different combinations of

  • editorSettings.MaskInput,
  • editorSettings.DisplayModes,
  • editorSettings.Formats,

... with no effect...

Thanks for all reply's
Sebastian