-
30 Mar 2009 3:33 AM #1
[FIXED][3.x] Record auto id
[FIXED][3.x] Record auto id
Seems a static id is being assigned to records, overwriting all previous records, so only one record will show up in grids at the moment. Check any example, say array grid.
Code:Ext.data.Record.id = function(rec) { rec.phantom = true; return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID].join(''); }MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
30 Mar 2009 3:37 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
OK, you've found it problem yourself.
IMHO this should have been:
Code:Ext.data.Record.id = function(rec) { rec.phantom = true; return [Ext.data.Record.PREFIX, '-', Ext.data.Record.AUTO_ID++].join(''); }
-
30 Mar 2009 5:28 AM #3
Fixed.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote