[CLOSED] Window closes on Field ENTER key pressed

  1. #1

    [CLOSED] Window closes on Field ENTER key pressed

    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.
    Last edited by Daniil; Jun 23, 2015 at 6:26 PM. Reason: [CLOSED]
  2. #2
    Hi @registrator,

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

Similar Threads

  1. Replies: 3
    Last Post: Aug 27, 2010, 9:30 PM
  2. Replies: 2
    Last Post: Feb 01, 2010, 1:00 PM
  3. Replies: 1
    Last Post: Jan 27, 2010, 11:21 AM
  4. [CLOSED] Running function after window closes
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 30, 2008, 7:09 AM

Posting Permissions