1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    17
    Vote Rating
    0
    cabennett85 is on a distinguished road

      0  

    Question disabling currently selected item in a list

    disabling currently selected item in a list


    Happy Friday everybody.

    I'm using a list bound to a JsonStore. The list's singleSelect config is set to true. Once an item in the list is selected, I'm wondering if there is a Sencha way to disable that item from being tapped again which seems to deselect it, at least for appearance sake so that the item stays highlighted.

    Thanks!

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,054
    Vote Rating
    659
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You could listen to one of the events (like itemtap) to detect whether or not it's being deselected.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

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: 5
    Last Post: 26 Jun 2009, 2:42 AM
  3. Disabling a row from being selected in a Grid
    By wavded in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 23 Feb 2009, 11:21 AM
  4. Replies: 3
    Last Post: 16 Feb 2009, 4:44 AM
  5. Replies: 1
    Last Post: 24 Sep 2008, 8:07 AM

Thread Participants: 1