I'm using ExtJs 4.2.1. The records
parameter of store's load event is shown as null
.
st = Ext.getStore('MyJsonStore');
st.on('load', function(store, records, successful, eOpts) {
//Block of codes
var access = records[0].data.access;
//Block of codes
});
st.load();
The error message is thrown at the console as:-
TypeError: Cannot read property '0' of null
Can anyone help me with this?