I have to implement a pagination for a datagrid. I mean, if
the result of a query returns more than X rows, I want the user can
navigate through pages with the classic set of links: Prev - 1 - 2
- 3 - 5 Next - Last page
This would be done by way of the filterFunction. You can set
the filter to look for something under each click of the "links".
Your filter function may get elaborate if you are trying to
dynamically create x # of links based on the ArrayCollection
length, but it can be done.
I'd prefer to make a query for each page, to avoid loading a
lot of data. My doubt is about the components to use. Maybe, I
could use a label for each link and assing a function to click
event, that, when fired, it make a new query...?
I was guessing if there are some prebuilt component to make
this kind of pagination..
Please feel free to check out http://www.flexicious.com. This is an extension to the Flex DataGrid/Advanced DataGrid components that provide pagination, filter, footer, Select All, support out of the box, in addition to a host of other features.