Flex: How to most effectively traverse a table column
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.
精彩评论