开发者

Flex Action Script timeout issue

开发者 https://www.devze.com 2022-12-28 12:25 出处:网络
Our flex (flare) applicati开发者_如何学编程on keeps timing out when rendering large datasets. Is there anyway to prevent this? we have tried to increase the timeout in the Application tag and the comp

Our flex (flare) applicati开发者_如何学编程on keeps timing out when rendering large datasets. Is there anyway to prevent this? we have tried to increase the timeout in the Application tag and the compiler settings. Not mushc success.

Any other thoughts?

regards Sameer


You may organize the rendering work in chunks and after processing each chunk, give back control to the system. There are many possible implementations, for instance start a timer that fires event each 500 ms and process a small chunk of the dataset in the event handler.

As a bonus, processing a large dataset in chunks will enable you to provide the user the option to cancel rendering easily.


Increasing timeout is not advisable because on high network traffic it will bug users even more, the only solution is to do paging of long datasets, always load 50 to 100 items only at a time and let user navigate to pages by using pager controls.

0

精彩评论

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