Flex4 - DataGrid CheckBox (Check Everything)
Posted on 2010-09-12
im using FlashBuilder here,
anyway i have a simple DataGrid, with 2 columns,
one of them has a custom itemrenderer that has a checkbox in it (but i dont use any source for the selected true/false)
and the other column is a basic one ,
now i am manually adding to the data source a new item that says "All of Them"
so i need that when the user check the checkbox for the "All of Them" it all automatically check all checkboxs for the datagrid.. if the user unselects then it will uncheck all of them but dont know how to access the checkbox in the custom item renderer for every row..
also i need a method that will return all items that are currently with the checkbox marked.. (but i suppose the answer for this one will come from the first aswell)
does anyone have any ideia how to do something like this ?
(is a DataGrid the best choice for something like this or perhaps a list or advdatagrid would be better ? )
ps. is there a flash builder section ?