View Full Version : [CLOSED] Window closes on Field ENTER key pressed

Jun 16, 2015, 8:46 AM
I have a window defined as

@( X.Window().ID("CustReceiptWindow")
.Title("Customer Receipt")
.FieldDefaults(fd =>
fd.LabelAlign = LabelAlign.Left;
fd.MsgTarget = MessageTarget.Side;
fd.EnforceMaxLength = true;
fd.AutoFitErrors = true;
fd.SelectOnFocus = true;

and there is a field in it
X.TextFieldFor(m => m.Reference).ID("RefCustRec").FieldLabel("Reference")

When I enter something in the field and press Enter key the window closes.

Please help.

Jun 17, 2015, 8:04 AM
Hi @registrator,

Interesting. Please provide a full test case that we could copy, paste, run and reproduce the problem.