View Full Version : ArrayReader and Store

13 Apr 2012, 1:21 AM
Hi, anyone know for EXTJS 3, i having this, so how should i do about this for EXTJS 4.

var reader = new Ext.data.ArrayReader({}, [
{ name: 'name' },
{ name: 'description' }

var GStore = new Ext.data.GroupingStore({
reader: reader,
url: contact.url,
root: 'contactlist',
groupField: 'name',
sortInfo: { field: 'name', direction: "DESC" }

13 Apr 2012, 1:40 AM
Groupingstore doesn't exist anymore, it is a property called group .

You could look at this http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.ArrayStore

and instead of groupField you set the property 'group' on the store

18 Apr 2012, 12:31 AM
erm you mean grouper or group? any nice example?

19 Apr 2012, 12:46 AM
erm sorry gotta bump this thread. i still cannot get it. there is a few array methods. not sure which is used for replacing it. and uses for the groupingstore, which i suppose it store now.

19 Apr 2012, 8:18 PM
Hi, anyone? i just updated to this way from js3 to js4. but there a problem. the record wont show out..............

var reader = new Ext.data.reader.Array({},[{
name: 'name'
name: 'description'
var GStore = Ext.create('Ext.data.Store', {
sorters: [{
property: 'name',
direction: "DESC"
groupField: 'name',
fields: [reader],
proxy: {
type: 'ajax',
url: contact.url,
reader: {
type: 'json',
root: 'doclist'