Results 1 to 2 of 2

Thread: ComboBox Empty Text

  1. #1
    Ext User
    Join Date
    Jul 2009
    Location
    NYC
    Posts
    1

    Default ComboBox Empty Text

    Hi all - I aplogize if this is a noob question, but I've been trying desperately to get the ComboBox widget to behave like a normal ComboBox. By that, I mean that I would like it to expand when I click anywhere within the ComboBox widget.

    To do this, I created a ComboBox with editing disabled and with an empty text message. What I am observing is that the ComboBox expands on the first click when I click on the 'down' arrow on the right-hand side or on any white space within the ComboBox.

    This is where the problem is - When I click on the empty text, the empty text disappears but does not expand the ComboBox. I must click AGAIN to make the ComboBox expand.

    ComboBox<Color> combo = new ComboBox<Color>();
    combo.setHideLabel(true);
    combo.setDisplayField("name");
    combo.setStore(store2);
    combo.setEmptyText("Select a Color...");
    combo.setEditable(false);
    combo.setForceSelection(true);
    combo.setAllowBlank(false);
    combo.setTriggerAction(TriggerAction.ALL);
    fp.add(combo, new FormData("-20"));

    Does anybody have any clues as to what could be going on? Thanks so much in advance!

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    959

    Default

    if i look at this examples there is not this "second" click issue.

    maybe you post a full working example to show the effect. then its more easy to replay the issue and we see also sideeffects in your code.

Posting Permissions

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