当ext js中点击任何行时,网格滚动到顶部 [英] Grid scrolls to top when any row is clicked in ext js
本文介绍了当ext js中点击任何行时,网格滚动到顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题是奇怪的是因为当我使用相同的网格作为例子,那么没有问题,一切都正常。
我真的不明白可能会导致这个问题?我没有覆盖任何听众滚动到顶部。
解决方案
我在我的代码中有以下原因导致它删除这个:
Ext.override(Ext.grid.GridView,{
syncFocusEl:Ext.emptyFn
});
I am facing a very strange problem. I have a grid and when i CLICK on any row then grid automatically goes to first record, though the row on which i click is selected but not focused.
The problem is strange because when i used that same grid as an example then there was no problem and everything works fine.
I really dont understand what could cause this problem? i haven't overridden any listeners to scroll to top either.
解决方案
i had following in my code which was causing it so remove this:
Ext.override(Ext.grid.GridView, {
syncFocusEl : Ext.emptyFn
});
这篇关于当ext js中点击任何行时,网格滚动到顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文