Label not getting focus

  1. #1

    Label not getting focus

    Hello,
    I have added a Ext.Net.Label to an Ext.Net.FieldSet within an Ext.Net.Container and i would like the nested controls to be able to receive focus. Right now, only the container gets focus and it ignores the 2 nested child controls on tabbing. Is there a way to make any control receive focus in ext.net?
    Last edited by edip; Sep 06, 2018 at 8:01 PM.
  2. #2
    Always post a standalone code snippet as it will make it easier for people to help you.

    Simply create a Listener on the FieldSet. Then on the activation, you set the focus of the nested textbox. This isn't syntax exactly correct but you get the idea.

    thanks,
    /Z

    <Listeners>
       <Activate handler="App.myNestedTextField.focus()" single="true"/>
     </Listeners>
  3. #3
    I am trying to make a fieldset or a container receive focus, not its contents. I would like to be able to tab to it by keyboard as well. Is this possible?

Similar Threads

  1. [CLOSED] focus() does not bring focus on Radio Group.
    By barnali in forum 3.x Premium Help
    Replies: 4
    Last Post: Apr 11, 2015, 1:43 PM
  2. EditableGrid focus BUG?
    By zyyjc in forum 1.x Help
    Replies: 1
    Last Post: May 20, 2012, 2:26 PM
  3. [CLOSED] Label Style / Obtain label color based on theme
    By rthiney in forum 1.x Premium Help
    Replies: 11
    Last Post: Apr 15, 2010, 10:35 AM
  4. How to add new tab and set focus via AjaxMethod?
    By dbassett74 in forum 1.x Help
    Replies: 4
    Last Post: May 10, 2009, 5:30 PM
  5. win.focus
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Feb 20, 2009, 3:45 AM

Tags for this Thread

Posting Permissions