PDA

View Full Version : How to prevent grid with CellModel from scrolling when clicking on a cell



extgeek
12 Apr 2012, 6:39 AM
Grid with RowModel has the same same problem but there is a workaround



Ext.override(Ext.selection.RowModel, {
onRowMouseDown: function(view, record, item, index, e) {
// view.el.focus();
this.selectWithEvent(record, e);
}
});


This fix doesn't work if the selection model is CellModel.
This is a known bug in Ext. They have a fix for it in Ext 4.1

Anyone has a workaround for it with CellModel in Ext 4.0.7 ?

Thanks!

extgeek
12 Apr 2012, 11:11 AM
Anyone has a fix/workaround?