开发者

Flex: How to most effectively traverse a table column

开发者 https://www.devze.com 2022-12-30 06:18 出处:网络
I have a table \"template\" which is used in various \"instances\". All instances have checkboxes in the second column (for record-delete).

I have a table "template" which is used in various "instances". All instances have checkboxes in the second column (for record-delete).

What would be the most effective way of traversing the tab开发者_运维问答le and check if at least one checkbox is selected (to enable a "delete" button)?


By table, do you mean DataGrid?

You'll need to store the "checked" state of each column in your dataProvider. The DataGrid makes use of renderer recycling, so there is only a record of what is shown on the screen.

If you check something, and then scroll so that something yo checked is off screen; you'll have no record of what was checked.

0

精彩评论

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

关注公众号