-
23 Feb 2012 1:02 AM #1
Answered: How to off autoLoad in NestedList?
Answered: How to off autoLoad in NestedList?
I'd like to off nestedlist, so I need load when painted component.
How to?
-
Best Answer Posted by mitchellsimoens
You will need to return false in the beforeload event of the TreeStore. Then whenever you want to load it you do this:
Where node would be the root node (or a node you want to load).Code:store.load({ node : node });
-
23 Feb 2012 11:40 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
You will need to return false in the beforeload event of the TreeStore. Then whenever you want to load it you do this:
Where node would be the root node (or a node you want to load).Code:store.load({ node : node });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 Feb 2012 4:37 PM #3
Thank you, ill apply that.
-
24 Feb 2012 8:05 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
The node is the root node. To get the root node you execute the getRoot method on the TreeStore:
Code:var node = store.getRoot();
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.
-
24 Feb 2012 6:31 PM #5
i was. but load event not works...


Reply With Quote