Hi Team,
There is a small issue with editing a fields in ASPxGrid in BatchEditMode.
I have applied a Custom Property Editor for all decimal fields in my application. When i am using Inline edit it's working fine. But after upgrading to 15.2 batch edit mode, these Decimal fields are disabled for editing.
I am using my sample code like this in my Custom Editor:
C#protected override WebControl CreateViewModeControlCore()
{
ASPxTextBox tb = CreateTbControl();
tb.Enabled = false;
return tb;
}
protected override WebControl CreateEditModeControlCore()
{
return CreateTbControl();
}
private ASPxTextBox CreateTbControl()
{
ASPxTextBox tb = new ASPxTextBox();
tb.DisplayFormatString = "{0:c2}";
tb.MaskSettings.Mask = "$<0…9999999999999g>.<00…99>";
tb.MaskSettings.IncludeLiterals = MaskIncludeLiteralsMode.DecimalSymbol;
return tb;
}
How to enable them? Any help… Thanks in advance.