Results 1 to 6 of 6

Thread: unselect the first option for combobox when onfocus?

  1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    85

    Default unselect the first option for combobox when onfocus?

    I have created a combobox:

    var combo = new Ext.form.ComboBox({});

    when I call the focus event: combo.el.focus() , it will select the first option and show the pop up, how could I disable it?

    thanks.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Why are you calling focus on the el, rather than directly on the field, with the optional select flag?

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    85

    Default

    Hi, thanks for your quick reply, I wanna the cursor go to the combobox, do you have any suggestion?

  4. #4
    Sencha User
    Join Date
    Jul 2008
    Posts
    85

    Default

    I tried to set focus directly to the combobox: combo.onFocus();

    but it product the same problem.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    There is no public method called onFocus.

    What happens when you use http://extjs.com/deploy/dev/docs/?cl...x&member=focus

  6. #6
    Sencha User
    Join Date
    Jul 2008
    Posts
    85

    Default

    ok, thank you, last I found a way to fix it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •