Property 'KeyMap' does not have a property named 'Target' error.

  1. #1

    Property 'KeyMap' does not have a property named 'Target' error.

    Hello All,
    I want to make a button as my default button which is placed in <ext:formpanel>.
    I added the code like you mentioned in the post.
    Still am unable to make that login button as default submit button and getting error like below.

    Property 'KeyMap' does not have a property named 'Target' error.

    Please anyone provide the solution asap.

    Thanks!!
  2. #2
    Hi,

    Does that help?

        <ext:FormPanel ID="frmLogin" runat="server" Title="Login" Icon="Lock">
            <Items>
                <ext:TextField ID="txtUsuario" runat="server" FieldLabel="Usuário" AllowBlank="false"
                    MsgTarget="Side" MaxLength="20" Width="150" />
                <ext:TextField ID="txtSenha" runat="server" InputType="Password" FieldLabel="Senha"
                    AllowBlank="false" MsgTarget="Side" MaxLength="12" MinLength="3" Width="150" />
            </Items>
            <Buttons>
                <ext:Button ID="LoginButton" runat="server" Text="Entrar">
                    <Listeners>
                        <Click Handler="if (#{frmLogin}.getForm().isValid()) { #{DirectMethods}.loginEnter(); }" />
                    </Listeners>
                </ext:Button>
            </Buttons>
            <KeyMap>
                <ext:KeyBinding>
                    <Keys>
                        <ext:Key Code="ENTER" />
                    </Keys>
                    <Listeners>
                        <Event Handler="if (#{frmLogin}.getForm().isValid()) { #{DirectMethods}.loginEnter(); }" />
                    </Listeners>
                </ext:KeyBinding>
            </KeyMap>
        </ext:FormPanel>
    Let me know if this is not what I was looking for.

    []'s
    Vinicius

Similar Threads

  1. Replies: 3
    Last Post: Jul 02, 2012, 8:27 AM
  2. Replies: 3
    Last Post: Dec 15, 2011, 12:18 PM
  3. [CLOSED] how to set panel html property as javascript property
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jan 05, 2011, 6:45 PM
  4. [CLOSED] [1.0] Invalid Property Error in ExtJs
    By betamax in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 30, 2010, 6:16 PM
  5. [CLOSED] "missing } after property list" error
    By stevejebson in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Sep 30, 2008, 7:45 PM

Posting Permissions