flexdeveloper.eu Forum

Flex and ActionScript 3.0 => Flex 3 Framework => Topic started by: Najla on 09 Mar 2010, 04:13:46 UTC



Title: how to separate a flex data grid to display in different pages
Post by: Najla on 09 Mar 2010, 04:13:46 UTC
I have created a data grid using flex and xml. There, the grid have 20 rows and all 20 rows can be shown at once. But now I want to show 5 rows at a time. So I should have 4 pages of 5 rows, but with the same grid.
If anybody know how to do that pls can you explain it?

Thanks in advance!


Title: Re: how to separate a flex data grid to display in different pages
Post by: flexy on 09 Mar 2010, 09:49:42 UTC
You'd need to break your data down into 5 row chunks, then bind this to the DataGrid. When the user want to paginate, they can click a button that will load the next 5 rows of data, and bind this to the grid.