PDA

View Full Version : commit() bring cursor on top of grid



JeromeA
20 Feb 2013, 2:53 PM
Hi,
I'm using the commit() or commitChanges() function to update my grid without having to refresh the whole thing, and it seems that those functions scroll the grid to the top, which is really inconvenient. Is there a way to avoid this?

scottmartin
21 Feb 2013, 9:14 AM
Does this help?



viewConfig: {
preserveScrollOnRefresh : true
},


Scott

JeromeA
21 Feb 2013, 11:51 AM
Hi Scott,
this is working, thanks

I also have grouping in this grid, do you know a way to preserve the grouping state? It seems that if I expand a group and I use commit() it closes all my groups. (because they were closed at the beggining using the grouping feature startCollapsed)