-
8 Nov 2012 10:39 AM #1
What modifies Ext.data.GroupingStore "lastOptions" property?
What modifies Ext.data.GroupingStore "lastOptions" property?
Hi,
I am using a GroupingStore in my application and the property "lastOptions" is giving me a fit. I could not understand what it is used for using the API documentation so a simpler explanation will surely help.
How and when does it get modified?
When I do groupingStore.load() , the lastOptions gets some value and is no longer null. However, on doing groupingStore.loadData(someJsonData) , the lastOptions value is not set and returns "null". Is this expected behavior or a bug? How can i cause lastOptions to be modified on calling loadData()?
-
10 Nov 2012 6:38 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
The load method of Ext.data.Store when it executes the storeOptions method.
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.
-
11 Nov 2012 11:59 AM #3
Thanks Mitchell..bt does the loadData() method also do the same??
I have a case where lastOptions is not being set on loading data by calling store.loadData(mydata) and so want to know if this is expected behavior or a bug
-
12 Nov 2012 7:01 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
You don't have options when you use loadData. You are basically just inserting data.
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.


Reply With Quote