在IE7中,第一次点击网格会导致ExtJS Ext.grid.GridPanel跳转到页面顶部
In IE7 the first click on a grid causes an ExtJS Ext.grid.GridPanel to jump to the top of the page
我对输入的 ExtJS gridPanel 的数组有一个奇怪的问题 - 仅在 IE7 中,在触发 rowclick 事件之前,当我单击一行时,页面会向上滚动 2-3 行。重复单击时,页面会向上滚动,直到页面位于页面顶部。然后只有行单击传递到我的处理程序。我在这个网格上只注册了两个侦听器:
侦听器:{ rowclick:function(grid, rowIndex, e) { ...我的处理程序 }, sortchange : function(grid, rowIndex, e){}
你有什么想法吗?
我在Internet Explorer 7中遇到了类似的错误。对我来说缩放:1;职位:相对;在周围的容器上帮助强制布局属性。
试试这个补丁
Ext.override(Ext.selection.RowModel, {
onRowMouseDown: function(view, record, item, index, e) {
//IE fix: set focus to the first DIV in selected row
Ext.get(item).down('div').focus();
if (!this.allowRightMouseSelection(e)) {
return;
}
this.selectWithEvent(record, e);
}
});
实际上,可以使用任何"可聚焦"元素(tr和td不是)。
相关文章:
- Angular UI-GRID未在页面上显示网格
- 如何仅在ui-grid.js中显示特定列
- ExtJS 4,自定义Ext.grid.Panel的布尔列值
- ui.grid 行无法选择行
- MVC Syncfusion Grid-HTML EJ Grid-获取Jquery中所选行的主键
- Angular UI Grid Edit可以与“;控制器为“;语法
- 角度 js - 如何用鼠标单击,然后在 ng-grid 上按 Enter 键
- Grid.MVC 禁用嵌入按钮的行选择
- 使用 Ext.grid.Panel.reconfigure() 会破坏网格 RowEditing 插件
- Angular ui.grid 获取嵌套行
- 无法更新 Kendo-grid 中的值 - 无法读取未执行的“数据”属性
- 如何在 ag-grid 中设置默认的最小和最大列宽
- ExtJs 4 GridPanel with CellEdit:输入的数据在验证失败时丢失
- Kendo Grid在更新时表现怪异
- EXT4.1鼠标悬停在GridPanel上
- 如何从$http请求延续中获得显示在angular ui.grid中的数据
- 使用ui.grid与cellTemplate共享$scope
- ExtJS:关注GridPanel中的单元格
- ExtJS-3,Ext.grid.GridPanel,多行复选框:如何一次提交所有选中的项目
- 在IE7中,第一次点击网格会导致ExtJS Ext.grid.GridPanel跳转到页面顶部