I am using Html GridView and trying to setup a textbox with min value 0.00 and max value 2.00 (2 decimal places).
I use masksettings.Mask = "<0…2>.<0…9><0…9>" which works good with setting max value input to be 2.00, the only issue comes with you enter 1.0X ; X can be any digit from 1 to 9 it automatically converts to 1.X0. I wanted to know if this is a devexpress bug.
C#settings.Columns.Add(column => {
column.FieldName = "DigitTest";
column.Caption = "Test";
column.ColumnType = MVCxGridViewColumnType.TextBox;
var textBoxProperties = column.PropertiesEdit as TextBoxProperties;
textBoxProperties.DisplayFormatString = "{0:N2}";;
// textBoxProperties.MaskSettings.Mask = "#.##"; // tried with this as well and doesn't work.
textBoxProperties.MaskSettings.Mask = "<0..2>.<0..9><0..9>";
textBoxProperties.ValidationSettings.RegularExpression.ErrorText = "The number must be in the range of 0...2";