Sorry?
can I ask you another question?
as th code bellow?
I use store.load ,and I want to statr from 2 ?get 1 row.
But,It doesn't work?
store.getAt(0).get('name') show =>Bill
store.count() ==>5
Code:
Ext.define('Employee',{
extend: 'Ext.data.Model',
fields: [
{name:'id', type:'int' ,mapping:0 },
{name:'name', type:'string',mapping:1 },
{name:'occupation', type:'string',mapping:2 }
]
});
var dataSource=[[1, 'Bill', 'Gardener']
,[2, 'Ben', 'Horticulturalist']
,[3, 'Ben3', 'Horticulturalist3']
,[4, 'Ben4', 'Horticulturalist4']
,[5, 'Ben5', 'Horticulturalist5']
];
var store = new Ext.data.Store({
model: 'Employee',
data: dataSource,
proxy: {
type: 'memory',
reader: {
type: 'array'
}
}
});
store.load({
start:3,
limit:1
});
console.log(store.getAt(0).get('name'));
console.log(store.count());