How does Flex 3 datagrid paging work?

爱⌒轻易说出口 提交于 2019-12-12 01:17:12

问题


How does paging work, must Flex load in all the database records to determine how many pages to generate?

Let's say I have a table with 10,000+ records and want to split it into pages of 10 records per page into a datagrid component. Does Flex load in the complete 10,000+ records, or just some of them?

I would like to use PHP and AMF on the backend.


回答1:


We also tried to make this a bit easier in Flash Builder 4 (and support any kind of data/server technology).




回答2:


Here is a good article on the Adobe blog that talks about how to do that. They call it "implicit paging".

http://blogs.adobe.com/mchotin/archives/2004/03/large_data_sets.html

Basically, it involves creating a data provider that is capable of fetching data on demand when a user attempts to view data that hasn't yet been loaded.

Hope this helps!



来源:https://stackoverflow.com/questions/1893350/how-does-flex-3-datagrid-paging-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!