Results 1 to 3 of 3

Thread: combo box standard values

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    27
    Vote Rating
    0
      0  

    Default combo box standard values

    Hello,
    Having a form including a textbox and two combo boxes leads to the following behavior:
    I need to set some standard values for the combo boxes. The only way I found to do this easily was using the dom options:
    Code:
    Ext.get('combo').dom.setValue("standardValue");
    Ext.get('combo').dom.select(0,false);
    When I reload the page, the standard values are presented in the boxes and the focus is laid to the first one.
    As soon as I click somewhere on the page, it looses its focus and the values disappear.

    Is there any trick to overcome this problem easily?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    Code:
    Ext.getCmp('combo').setValue('standardValue');

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    27
    Vote Rating
    0
      0  

    Default

    Thanks a lot! Last time I tried it didn't transfer the value. But now it works! Thanks again!

Similar Threads

  1. multiple values in a combo box
    By dlstrawn in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 17 Sep 2014, 7:50 AM
  2. Access combo box values
    By noah977 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Mar 2008, 2:09 PM
  3. default values in combo box?
    By trickytoad in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Feb 2008, 5:44 AM
  4. [2.0a] Combo Box Values
    By jakehawk in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Oct 2007, 6:54 AM
  5. [2.0a] Combo Box Values
    By jakehawk in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 9 Oct 2007, 10:12 AM

Posting Permissions

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