-
23 Jul 2012 12:10 PM #1
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
-
23 Jul 2012 12:42 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Did you enable it on the child lists? Like using the listConfig config?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Jul 2012 12:59 PM #3
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'); }
-
23 Jul 2012 1:01 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
23 Jul 2012 1:12 PM #5
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
-
23 Jul 2012 1:15 PM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote