Results 1 to 2 of 2

Thread: Automatic deselect when select other item

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Vote Rating

    Default Automatic deselect when select other item


    I'm trying to modify the Dataview to add in some custom dom when calling applyItemTpl, I manage to get that working, when I select on the list item, I will add some CSS and do some stuff on the new dom, and when other list item selected, I want to 'deselect' the previous one by removing the CSS.

    I've studied the Dataview.js source, since it wil remove the x-item-selected class for not selected item, but I'm kinda lost when trying to figure out how and where the code remove the x-item-selected class from previously selected list item and assigned it to the newly selected list item.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    It gets removed in the doItemDeselect method or you can use events
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch

Posting Permissions

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