Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    23
    Vote Rating
    0
    robertocarvajal is on a distinguished road

      0  

    Default disclose event not firing on NestedList [ST-2.0.1]

    disclose event not firing on NestedList [ST-2.0.1]


    that's about it, seems like NestedList doesn't support the disclose event (and it's not present on Sencha Architect config either) but oddly enough the onItemDisclosure config is present and if true it does show the disclosure icon correctly over the nestedlist items, so it seems like nestedlist should fire the disclose event right?

    This is on Sencha Touch 2.0.1

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    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


    Did you enable it on the child lists? Like using the listConfig config?
    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.

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    23
    Vote Rating
    0
    robertocarvajal is on a distinguished road

      0  

    Default


    I basically have a nestedlist, with onItemDisclosure set to true, and a disclose listener and it's not firing like a normal list event would fire, haven't tried on 2.0.2 yet since I don't see any public links to download it..

    Code:
    ...
    {
        xtype: 'nestedlist',
        itemId: 'LibraryProjectList',
        scrollable: true,
        loadingText: ' ',
        onItemDisclosure: true,
        store: 'ProjectStore',
        updateTitleText: false
    }
    ...
    listeners: [
    {
        fn: 'onLibraryProjectListDisclose',
        event: 'disclose',
        delegate: '#LibraryProjectList'
    }
    ]
    ...
     onLibraryProjectListDisclose: function(nestedlist) {
            console.log('disclose event fired properly');
    }

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    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


    ok good. However the disclose event is on the child lists not the NestedList so try changing the delegate config to:

    Code:
    '#LibraryProjectList list'
    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.

  5. #5
    Sencha User
    Join Date
    Sep 2008
    Posts
    23
    Vote Rating
    0
    robertocarvajal is on a distinguished road

      0  

    Default


    boom! it works!! thanks a lot!

    this helped me understand why it wasn't working and it's the first time I need to use this kind of delegate, I'm building this on sencha architect so I was always using the basic event binding, but for this I had to use the delegate binding for the first time

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    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


    Quote Originally Posted by robertocarvajal View Post
    boom! it works!! thanks a lot!

    this helped me understand why it wasn't working and it's the first time I need to use this kind of delegate, I'm building this on sencha architect so I was always using the basic event binding, but for this I had to use the delegate binding for the first time
    Glad it works for you! As long as you learn along the way, mistakes or holes in knowledge are ok. I learn something new all the time.
    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

Tags for this Thread