View Full Version : Trying to understand how the ArrayReader works in 3.1+

1 Dec 2010, 9:39 PM
I have some old code that was written in ExtJS 1.1 and I am trying to get it to work with ExtJS 3.1+.

The problem is that the older code, which is this

var gridDataModel = new #gridStore#({
proxy: new Ext.data.MemoryProxy(gridData),
reader: new Ext.data.ArrayReader({

however when I use this in ExtJS 3.1+ I am finding that the id field is containing the value ext-record-1 instead of the value 1, and I am at a loss to try to explain how this is actually happening. This means that we have to use the getById('ext-record-' + idValue); instead of the getById(idValue);

I don't see this as a major issue on my part, but I would like to know an understand how this is working some more.