Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2010
    Norderstedt, Germany
    Vote Rating
    SvenWS is on a distinguished road


    Default [FIXED-249] selectedCls defaults not to 'x-item-selected' class

    [FIXED-249] selectedCls defaults not to 'x-item-selected' class

    Sencha Touch version tested:
    • 0.9 rev 3
    • only default ext-all.css

    Platform tested against:
    • iOS 3.x

    • The config option selectedCls of the DataView defaults not to the build in class 'x-item-selected' as documented. It's also not enough to set it: you have copy the definition to your own style definition to get the selection class work. It's the same with the undocumented config option pressedCls: I would expect that the class is enabled by default for the DataView.

    Steps to reproduce the problem:
    • Just build a Dataview and set the singleSelect to true.

    The result that was expected:
    • The items are not highlighted when pressed and not showed as selected.

    Debugging already done:
    • Yes

    Possible fix:
    • Copy the original classes or build own classes and set the selectedCls and/or the pressedCls config option to these classes

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Redwood City, California
    Vote Rating
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough



    Thank you for the report.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Haarlem, Netherlands
    Vote Rating
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough



    I have not been able to reproduce this in the latest trunk. In the DataView class the defaults are set like this:

         * @cfg {String} selectedCls
         * A CSS class to apply to each selected item in the view (defaults to 'x-item-selected').
        selectedCls : "x-item-selected",
         * @cfg {String} pressedCls
         * A CSS class to apply to an item on the view while it is being pressed (defaults to 'x-item-pressed').
        pressedCls : "x-item-pressed",
    In the list example when you open the developer tools and press/select an item, the classes are correctly being added to the node. Maybe this was broken, and has already been fixed recently. Closing this bug as fixed.

Similar Threads

  1. x-item-selected class on list doen't work
    By wakatanka in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 1 Sep 2010, 8:56 AM
  2. Replies: 1
    Last Post: 16 Sep 2009, 9:41 PM
  3. Replies: 5
    Last Post: 26 Jun 2009, 2:42 AM
  4. [FIXED][3.x] Menu item hover class problems...
    By stever in forum Ext 3.x: Bugs
    Replies: 6
    Last Post: 28 May 2009, 7:41 AM
  5. Replies: 1
    Last Post: 27 Jun 2008, 4:01 AM

Thread Participants: 2

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..." hd porno faketaxi