I have a grid panel that loads data through a XML store. I cannot control how many items the XML will return, but I want to limit the grid to showing x number of rows.
Sorry if this is basic, I couldnt find it via google
Cheers
Do you not want to show the rows beyond x for performance / too much data to visualize reason or do you want to really hide the records beyond x from the users?
If former, you can just setup pagination (it's pretty straight forward)
More info here -
http://dev.sencha.com/deploy/dev/examples/grid/paging.html
If later, you can use bensiu's suggestion. (using getRange())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With