omari_yousef
13 Sep 2012, 1:56 AM
i try to know the column header of the selected cell >>> and i but the
selType:"cellModel"
when i try to load another data to the grid store i get this error >>
Uncaught TypeError: Cannot read property 'viewIndex' of null
what i should do???
this is my grid
Ext.create('Ext.grid.Panel', { store: this.calenderStore,
border:true,
cls:'workGridClander',
columnLines:true,
selType: 'cellmodel',
listeners:{
itemdblclick:function(view, model,htmlitem,index){
console.log(model)
//var headerNumber = me.calenderGrid.getSelectionModel().selection.column;
//if(headerNumber!==0){
// alert("sss")
// me.eventsManager(model);
//}
},
afterrender:function(){
me.getData();
},
},
columns: getColumn(),
});
selType:"cellModel"
when i try to load another data to the grid store i get this error >>
Uncaught TypeError: Cannot read property 'viewIndex' of null
what i should do???
this is my grid
Ext.create('Ext.grid.Panel', { store: this.calenderStore,
border:true,
cls:'workGridClander',
columnLines:true,
selType: 'cellmodel',
listeners:{
itemdblclick:function(view, model,htmlitem,index){
console.log(model)
//var headerNumber = me.calenderGrid.getSelectionModel().selection.column;
//if(headerNumber!==0){
// alert("sss")
// me.eventsManager(model);
//}
},
afterrender:function(){
me.getData();
},
},
columns: getColumn(),
});