| 
				Ext 4 grid reload
			 Помогите ,плиз.Такая конструкция.
 grd =  Ext.create('Ext.grid.Panel',{
 id           : 'grd',
 store       : Ext.create('Ext.data.Store', {
 model       : mdl.grid,
 listeners   : { load : function (s, recs, success, e) {
 if (Ext.getCmp('mainWin'+id_sprav).itemId>0)
 {
 rc = this.getById(Ext.getCmp('mainWin1').itemId);
 Ext.getCmp('grd').getSelectionModel().select(rc);
 }
 }
 }
 }) ,
 ...
 в Ext.getCmp('mainWin1').itemId помещен Id новой записи.
 Добавляю в таблицу грида запись. Делаю grd.store.reload() .
 rc = this.getById(Ext.getCmp('mainWin1').itemId);  выдает ошибку rc = null.
 Подскажите , где отлавливать окончание процесса загрузки store ?
 |