ExtJS: row limit on GridPanel

I have a grid panel that loads data through an XML repository. I cannot control the number of elements returned by XML, but I want to restrict the grid to display x the number of rows.

Sorry if this is basic, I could not find it through google

Greetings

+3
source share
2 answers

Just use getRange () method in Store (XmlStore) when loading data into GridPanel

+2
source

Would you like to show rows outside x for performance / too much data to visualize the reason, or do you really want to hide records outside x from users?

, ( )
- http://dev.sencha.com/deploy/dev/examples/grid/paging.html

bensiu. ( getRange())

+3

Source: https://habr.com/ru/post/1786314/


All Articles