开发者

Refresh datagrid

开发者 https://www.devze.com 2023-01-17 15:55 出处:网络
I have datagrid. the source for this datagrid is a url that returns n number of rows in json format. i want to save this result in an array and show 20 records in the grid at a time. and cycle to the

I have datagrid. the source for this datagrid is a url that returns n number of rows in json format.

i want to save this result in an array and show 20 records in the grid at a time. and cycle to the next 20 records in a time interval.

How to do this开发者_运维问答? pls help.

Somethings i tried

created a httpservice and mapped it to a datagrid

-Vivek


When you say 'how to do this', what are you refering to? The refresh data part? How to set an interval? How to parse JSON to Array?

In anycase, make the dataProvider for the DataGrid an ArrayCollection and make sure it's [Bindable]. This will enable data changes to be reflected immediatly in the DataGrid.


Matt Chotin's articles on paging are still the best. http://blogs.adobe.com/mchotin/2004/03/large_data_sets.html http://blogs.adobe.com/mchotin/2004/04/large_data_sets_1.html http://blogs.adobe.com/mchotin/2004/05/large_data_sets_2.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号