1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    spectdev is on a distinguished road

      0  

    Default Unanswered: How to disable ComboBox item?

    Unanswered: How to disable ComboBox item?


    Hi,

    How can one disable a ComboBox item so that it is not selectable?

    Thanks.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    As a matter of UI you have to ask yourself first: Why show the user something they can never do? Should it even be in the list?

    As a matter of preventing selection: Listen to the BeforeSelect event, and cancel it. This should stop the user from being able to clock on it to select it.

    As a matter of styling: Draw this item differently than the others using a template - perhaps make the text gray, perhaps give it a different background, perhaps make it slightly transparent.

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    spectdev is on a distinguished road

      0  

    Default


    Thanks for the reply.

    Why the need for such feature?
    To show to the user that the option is available but that it has been used up.

    There should be native support for this as want to also gray-out the icon for the item.
    As this is well supported by the HTML select box and widely used, I am surprised that it is not a default feature.

    Can someone please post an example of a solution?

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."