1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    Julien A. is on a distinguished road

      0  

    Default Unanswered: suppressEvent parameter on select method (in a List)

    Unanswered: suppressEvent parameter on select method (in a List)


    Hello,

    I am trying out Sencha 2 PR3 and I came across an issue with the select method in the list. I would like to use its third argument which is supposed to be a boolean preventing the 'select' event to fire when set to true.

    I have a listener that selects an item in a list. When I set that third parameter to false, my application is running without trouble. However, if I try to set it to 'true' as I would like to, I get the following error :
    "Uncaught TypeError: Object [object Object] has no method 'doItemDeSelect'"

    What is that doItemDeSelect method? Should I implement one or is that a bug in PR3?



    On the same agenda, is there or is there going to be a similar parameter for the setActiveItem method?

    Right now I have a list and a carousel that are tightly connected : they are both populated with the same store. My list gives a summary of each item and the carousel allows to display a more complete description.
    What I'm doing is that I'm modifying the activeItem of the carousel when an item is selected in the list. And I'm doing the reverse operation with the carousel : when the active item of the carousel is changed, I change the selected item in the list.

    It works fine. However, there is quite a big delay before the list actually changes its selected item when I slide the carousel (on Ipad and Android tablets, not really on PC). I figured it was because my events are fired multiple times : when the activeitemchange event occurs, it fires the select event on the list and vice-versa... Would you know any way around that issue?

    Thanks in advance.
    Regards,

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This was a typo in PR3... 'doItemDeSelect' is correct but in the code it is 'doItemDeselect' and this has been fixed for the next release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1