-
31 May 2012 1:37 AM #1
Dataview and Store Filtering
Dataview and Store Filtering
REQUIRED INFORMATION
Ext version tested:- Touch 2.0.1rc
- Chrome 20 (Win7)
- Safari iOS 5.1
- HTML5
After applying a filter to a store linked to a dataview, the dataview seems to reference the old record data when this.getRecord() is used.
Steps to reproduce the problem:
The attached app was generated with Sencha Command, but does not include the SDK folder.
Lauch the App
Click on the Show button on the 2nd line - it will alert "Cat 1 Sub cat 1".
Click on the Expand button on first line - the 3 "Cat 1 sub cat 1/2/3" entries will be hidden.
Click on the Show button on the 2nd line - it will alert "Cat 1 Sub cat 1".
The result that was expected:
An Alert showing "Category 1"
The result that occurs instead:
An Alert showing "Cat 1 Sub cat 1"
Test Case:
See attached App
HELPFUL INFORMATION
Screenshot or Video:- attached
-
31 May 2012 4:08 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Thanks for the report.
Can we get the app.css so that the expand/show are lined up correctly so when the dev that gets this ticket can easily see which button is which?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.
-
31 May 2012 4:16 AM #3
Sure - here you go.
There are no changes from the one produced from the sencha generate command.
-
14 Jun 2012 1:02 AM #4
Is there any news on this bug - it is now causing me some pain as I cannot complete my development.
Thanks.
-
11 Sep 2012 7:37 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
Hi Pandorian,
Sorry for the big delay. I hope this might still help you get passed this issue. I think the following override will fix the problem.
This will also be fixed in the next 2.1 release.Code:Ext.define('Ext.dataview.component.ContainerFix', { override: 'Ext.dataview.component.Container', updateListItem: function(record, item) { if (item.updateRecord) { if (item.getRecord() === record) { item.updateRecord(record); } else { item.setRecord(record); } } } });
Best,
Tommy
-
12 Sep 2012 12:28 AM #6
Hi Tommy,
Thank for the fix, but alas it is too late for me. I struggled for a number of months battling bugs, inconsistencies and other issues in the framework, that I have abandoned Sencha Touch and I am now actively re-writing it as a native application in Objective-C.
Regards
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2949
in
2.1.


Reply With Quote
