nar
24 Jun 2009, 1:45 PM
In my grid I have added the following:
render: function(grid){
var v = grid.getView();
v.mainBody.on({
mouseover: function(e, t){
if(this.currentCell){
this.currentCell.removeClass('x-grid3-cell-selected');
}
this.currentCell = Ext.get(t);
this.currentCell.addClass('x-grid3-cell-selected');
},
mouseout: function(e, t){
if(this.currentCell){
this.currentCell.removeClass('x-grid3-cell-selected');
}
delete this.currentCell;
},
delegate: v.cellSelector,
scope: v
});
},
This gives me a mouseover of cells, I am looking to only have the mouseover work based on certain columnIndexs though. Any ideas on adding this to mouseover and mouseout?
**This should have gone to 2.X if someone can move it please do! Sorry
render: function(grid){
var v = grid.getView();
v.mainBody.on({
mouseover: function(e, t){
if(this.currentCell){
this.currentCell.removeClass('x-grid3-cell-selected');
}
this.currentCell = Ext.get(t);
this.currentCell.addClass('x-grid3-cell-selected');
},
mouseout: function(e, t){
if(this.currentCell){
this.currentCell.removeClass('x-grid3-cell-selected');
}
delete this.currentCell;
},
delegate: v.cellSelector,
scope: v
});
},
This gives me a mouseover of cells, I am looking to only have the mouseover work based on certain columnIndexs though. Any ideas on adding this to mouseover and mouseout?
**This should have gone to 2.X if someone can move it please do! Sorry