PDA

View Full Version : Truncating Ext.data.ArrayStore()



leewei
18 Jun 2010, 5:37 PM
Hi,

I have an ArrayStore that I have sorted and processed.
I want to truncate and just copy the first x amount of rows.

I cannot figure out a way to do that.

Thanks.
Lee

Animal
18 Jun 2010, 10:42 PM
Remove Records that you don't want in the Store.

Animal
18 Jun 2010, 10:43 PM
Or, better, only load what you do want.

Condor
18 Jun 2010, 11:13 PM
The first x rows? That sounds like you want to use the PagingStore user extension!

leewei
19 Jun 2010, 7:30 AM
I ended up using ArrayStore.getRange(startIndex, endIndex) which returns an array of Records.
This works for my needs. Thank you for the suggestions.