PDA

View Full Version : Remembering Grouping?



Brendan
2 Jul 2009, 8:52 PM
Hi All,

Just trying out V3 and grouping, is there anything I can add to the code so when the data is reloaded or refreshed it remembers what grouping / settings I had applied to the grid?

example of my view for the groupview (same as example)

view: new Ext.grid.GroupingView({
forceFit: true,
groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
})

I know with a normal grid under 1.1 you used to be able to use somthing like: scrollToTop: Ext.emptyFn, I want the data to refresh, but I want the view to stay the same. ignoreAdd looks good, but it does not seem to update existing data, and everything just "resets" on reload?

-thanks.