Results 1 to 2 of 2

Thread: preSelect an item that is not a leaf

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default preSelect an item that is not a leaf

    Hi,

    I have a nested list and i wanna have the possibility to select an item even if this not a leaf.

    Indeed, such items can be consider as a group of items/leaf.

    BUT, each time i touch an item, it switch on the next sublevel.

    So my question is to know, how to avoid this switch ? any idea ?

    I have immagine a double-click but it won't be nice to use.

    I have think to add a right colum with a clikable image used to select the item as a toggle button.

    Then, on the bottom, a button used to valid the final choice.

    Thanks in advance for your reply.

    Regards.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1382
      0  

    Default

    You will need to change the onItemTap method of the NestedList to accomplish this.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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