Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtJS: Limiting the number of rows on a GridPanel

Tags:

extjs

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

like image 882
neolaser Avatar asked Jan 28 '26 03:01

neolaser


1 Answers

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())

like image 157
Amol Katdare Avatar answered Jan 30 '26 02:01

Amol Katdare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!