简体   繁体   English

如何禁用自动滚动到ExtJS网格中的选定单元格?

[英]How to disable auto scroll to selected cell in ExtJS grid?

How to disable auto scroll to selected (focused) cell in ExtJS grid after ALT+TAB (switch) and return back? 如何在ALT + TAB(切换)后自动滚动到ExtJS网格中的选定(聚焦)单元并返回? I select a single cell, then i scroll table to the bottom, switch to any other chrome`s tab or application, switch back and grid scrolls to selected cell. 我选择一个单元格,然后我将表格滚动到底部,切换到任何其他chrome的标签或应用程序,切换回和网格滚动到选定的单元格。 I need to disable this function. 我需要禁用此功能。

Thank you. 谢谢。

Solved by adding two lines. 通过添加两行解决。 Maybe its wrong, but it works for me as i need. 也许是错的,但它对我来说很有用。

Ext.GlobalEvents.events.focus.listeners[0].fireFn=function(){};
Ext.GlobalEvents.events.focus.listeners[0].fn=function(){};

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM