extjs scroll's grid stop working

我与影子孤独终老i 提交于 2019-12-12 02:46:50

问题


I´ve spent a couple of days dealing with an issue about grids' vertical scroll. Scrolls just stop working under some unknown conditions, I mean, it is not deterministic I think.

My application has lots of grids and most of them work perfectly always but just a couple of them just don´t.

I found this Extjs Grid scroll dons't work after application running while that describes the same problem that I have currently, however a migration to a newer version is not the solution for me because after do it (yes, I did it but rolled it back) I found more problems that it is risky enough to discard given the applications is going to production in a few days.

Does someone have a solution, patch, hack or whatever to workaround this problem?

We are using extjs 4.0.7.


回答1:


The issue with scrolling is localized to 4.0.x-4.0.7 releases due to Sencha's attempt to use virtual scrolling technique. As you have discovered this strategy backfired and has since been reverted to native scrolling.

Your issue is solvable by upgrading to 4.1+ release.




回答2:


Try to using:

 grid.reconfigure(store,null);

Where:

  • grid: Grid that is modify.

  • Store: it's the original store.

  • null: value for 'new' columns.

See the comment too: reconfigure function on Sencha Api 4.0.7



来源:https://stackoverflow.com/questions/16426906/extjs-scrolls-grid-stop-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!