beckdawg
17 Aug 2011, 11:50 AM
I currently have a a grid with pagination on it. What I want to do is convert that to a printable html table. Assuming I could grab all of the data from my controller that would be simple enough. What I would like to be able to do is just use store.<some method> and then get back all of the data in an array of some sort then build my html as needed.
The problem I keep bumping into is the fact that Store works off of cache. I've seen suggestions online that you can use .getRange(). I have tried this by putting it into the store's load call back but it appears to bring back the items that are only in the store's cache. So, it doesn't appear that I can use the store itself.
What I could do is make a separate ajax call to my controller and get an array that way. However, this seems to be poor implementation because I've already set up the store to do essentially the same thing. Is this my only option here or is there something I'm missing that is easier.
The problem I keep bumping into is the fact that Store works off of cache. I've seen suggestions online that you can use .getRange(). I have tried this by putting it into the store's load call back but it appears to bring back the items that are only in the store's cache. So, it doesn't appear that I can use the store itself.
What I could do is make a separate ajax call to my controller and get an array that way. However, this seems to be poor implementation because I've already set up the store to do essentially the same thing. Is this my only option here or is there something I'm missing that is easier.