Pagination + DataGrid + Service = PaginatedDataGrid v0.1 [english]

February 19th, 2010 by damian Leave a reply »

Lately I was building an backend (admin-side) application in Flex. Most of the data was presented in data grids.

However, when working with services (PHP in my case) it is risky to load all data  to the DataGrid. It may lead to an application crash, ie. when we work on 1000′s of items.

Therefore I decided to create the component that handles pagination itself – it is similar to ExtJS’ data grid (however much simpler :) ).

The example is below… (You can view source by right-clicking on application)

This components dispatches 2 events (for now):

  • when page is changes
  • when data is sorted

I also added DATA_FILTER event, but I do not have idea how to include the filtration form in the component GUI.

To download source click here.

Any comments would be welcomed.

Advertisement

3 comments

  1. hellix says:

    Your solution is simplify and clearly. Extra. :) I also created pagination component. Everything is on my blog. ;)

  2. damian says:

    Unfortunately I have no time to improve this component.

  3. hellix says:

    Usually when problems occurs we search the solutions… Maybe one day my pagination component solve your problems or maybe your component solve my problems. ;) Who knows what we need. ;)

    Greetings. ;)

Leave a Reply

Flexmaniaks on Facebook