[CLOSED] Interacting with components on the client-side in Ext.NET 2.0

  1. #1

    [CLOSED] Interacting with components on the client-side in Ext.NET 2.0

    For version 1.x, I had written this (and it worked):

    <ext:TextField 
        ID="txtPassword" 
        runat="server" 
        InputType="Password" 
        FieldLabel="Password" 
        AnchorHorizontal="100%"
        >
        <Listeners>
            <SpecialKey Handler="if (e.keyCode == 13) {  btnLogin.fireEvent('click'); return false; }" />
        </Listeners>
    </ext:TextField>
    Running the same code in version 2.x, I got a JavaScript error saying fireEvent does not exist. So I changed the SpecialKey Handler to this, and now it works fine:

    <SpecialKey Handler="if (e.keyCode == 13) { Ext.getCmp('btnLogin').fireEvent('click'); return false; }" />
    Do I access all client-side controls now using "Ext.getCmp()" now?
    Last edited by Daniil; Mar 29, 2012 at 4:42 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Sorry about that - I read through it, but I must have missed it. Thanks.
  4. #4
    No problem, we are always glad to help.

Similar Threads

  1. Replies: 3
    Last Post: Jul 19, 2012, 7:35 PM
  2. Documentation of client side components
    By anup in forum Open Discussions
    Replies: 1
    Last Post: Aug 26, 2011, 9:20 PM
  3. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  4. Replies: 4
    Last Post: Mar 19, 2010, 11:35 AM
  5. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM

Tags for this Thread

Posting Permissions