PDA

View Full Version : Grid with CRUD store scrolls to top on store sync



Jangla
12 Jun 2013, 1:18 PM
Is there a way to stop a grid which has a CRUD based store from scrolling back to the top row each time a record is updated? Right now, I have some toolbar buttons that update a value in the store but each time the store gets updated (auto sync is on) the grid scrolls all the way back to the top. Very annoying :D

slemmon
13 Jun 2013, 10:46 PM
See if preserveScrollOnRefresh is what you're looking for:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.view.AbstractView-cfg-preserveScrollOnRefresh

Jangla
13 Jun 2013, 11:48 PM
Dammit - I always forget to check out the viewConfig stuff when it comes to grids!

That works perfectly - thanks :D