PDA

View Full Version : How to update list



arunjoy
3 May 2012, 3:52 AM
my list view is not updating after adding new data, i heard sync() can solve issue, where to put this function, i am following mvc architecture

arunjoy
4 May 2012, 12:43 AM
Presidents=Ext.create('app.store.Presidents');



Presidents.load({
callback : function(records, operation, success) {
console.log('hai count'+records.length);
console.log(Presidents);
Ext.create('app.store.Presidents').add(records);
Presidents.sync();
}
});