Results 1 to 5 of 5

Thread: Add empty text uin combo box

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default Answered: Add empty text uin combo box

    HI

    I add an empty text in combo box by
    storeComboSearch.insert(0,{status_label: ' ', status_code:'nul'});

    but when I select the empty text item, the combo box show   . How can I solve it? or do you have another solution to add an empty text?

    Thankyou


  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Answers
    113
    Vote Rating
    100
      0  

    Default

    you can use the emptyText config of the combobox to display some text when the combobox store is empty:

    http://docs.sencha.com/ext-js/4-0/#!...-cfg-emptyText

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Answers
    716
    Vote Rating
    499
      0  

  4. #4
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    316
    Answers
    59
    Vote Rating
    59
      0  

    Default

    Alternatively you could just set the status_label to '\u00a0' instead of ' '

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
      0  

    Default

    Thank you Farish, Scott and droessner.

Posting Permissions

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