Poonam Bhatt
Poonam Bhatt

Reputation: 10302

ExtJs 4.2 Store issue with rawData

I am calling store , but while i print its data it says undefined

var store1 = Ext.create('Store1', {storeId: 'headerId'}).load({
     params: {
        gridFlag: 'gridHeader'
    }
});
   console.log(Ext.getStore(this.storeId).proxy.reader.rawData);

Upvotes: 0

Views: 1262

Answers (1)

Ben
Ben

Reputation: 401

var myStore = Ext.create('Ext.data.Store', {
   model: 'User',
   proxy: {
       type: 'ajax',
       url: '/users.json',
       reader: {
           type: 'json',
           root: 'users'
       }
   },
   autoLoad: true
});

The property "proxy" does not exist - try getProxy or whatever

getStore().getProxy().getReader().rawData;

Sencha Documentation 4.2.2

Upvotes: 1

Related Questions