PDA

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



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

@( X.Window().ID("CustReceiptWindow")
.BodyStyle("background-color:transparent;")
.BodyCls("my-header")
.Layout(LayoutType.Fit)
.Width(950)
.Height(550)
.Icon(Icon.UserOrange)
.Title("Customer Receipt")
.Border(true)
.Resizable(false)
.Items(
X.FormPanel().Layout(LayoutType.Fit)
.BodyStyle("background-color:transparent;")
.ID("FormCustReceipt")
.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.

Daniil
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.