Jun 16, 2015, 8:46 AM
[CLOSED] Window closes on Field ENTER key pressed
I have a window defined as
Please help.
@( 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.
Last edited by Daniil; Jun 23, 2015 at 6:26 PM.
Reason: [CLOSED]