PDA

View Full Version : grid.Panel



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(),
});

sword-it
13 Sep 2012, 2:33 AM
Read this thread -
http://www.sencha.com/forum/showthread.php?204621-Cannot-read-property-viewIndex-of-null-After-loadinData-to-Store

mohaskuar
13 Sep 2012, 4:31 AM
this is a bug. and bieng fiexd in extjs 4.1.1....get that