beckdawg
16 Apr 2012, 8:31 AM
As I understand things, a grid with paging will load that page into it's cache. I've been asked to implement a print functionality. Given that there is a plugin that does a lot of this I've just started altering it for my needs. It doesn't print the entire data set instead just the current page. I would argue that is correct behavior but I don't apparently get an opinion here at work.
So, I need to know how to load all the data in a store that has paging. I tried something like
grid.store.getRange(0, grid.store.getTotalCount( ));
That just returned what was in the current cache rather than the entire dataset.
As I understand our code, they are already grabbing the entire data set when the initially call the back end and storing it in memory. So, in theory this shouldn't kill performance. But, I need to know how to grab all of it for the case of printing.
So, I need to know how to load all the data in a store that has paging. I tried something like
grid.store.getRange(0, grid.store.getTotalCount( ));
That just returned what was in the current cache rather than the entire dataset.
As I understand our code, they are already grabbing the entire data set when the initially call the back end and storing it in memory. So, in theory this shouldn't kill performance. But, I need to know how to grab all of it for the case of printing.