myBlueSky
asked on
AdvancedDataGrid with checkbox
Hello,
I have an array collection and I’m using AdvancedDataGrid to display the data.
How can we put checkbox for each group and row in Flex AdvanceDataGrid?
I tried this example http://sites.google.com/site/prosameer/CheckADG.zip here but I couldn’t able to apply it on my situation.
Your help is needed to do the following:
- Add checkbox for each row in Flex AdvanceDataGrid and indicator to the group if its rows partially selected and checked if all rows under that group were selected.
- How can we access that data for further processing, I need to use checked rows for further processing.
- add option to select/deselect all rows/groups
- show row count for each group
- allow the user to expand/collapse all nodes (groups)
Thanks,
I have an array collection and I’m using AdvancedDataGrid to display the data.
How can we put checkbox for each group and row in Flex AdvanceDataGrid?
I tried this example http://sites.google.com/site/prosameer/CheckADG.zip here but I couldn’t able to apply it on my situation.
Your help is needed to do the following:
- Add checkbox for each row in Flex AdvanceDataGrid and indicator to the group if its rows partially selected and checked if all rows under that group were selected.
- How can we access that data for further processing, I need to use checked rows for further processing.
- add option to select/deselect all rows/groups
- show row count for each group
- allow the user to expand/collapse all nodes (groups)
Thanks,
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var myData:ArrayCollection = new ArrayCollection([
{Product:"Product-1", Item:"Item-1", Quantity:100, Price:372},
{Product:"Product-1", Item:"Item-2", Quantity:200, Price:282},
{Product:"Product-1", Item:"Item-3", Quantity:321, Price:188},
{Product:"Product-2", Item:"Item-1", Quantity:112, Price:223},
{Product:"Product-2", Item:"Item-1", Quantity:221, Price:772},
{Product:"Product-3", Item:"Item-1", Quantity:331, Price:102},
{Product:"Product-3", Item:"Item-2", Quantity:811, Price:521},
{Product:"Product-4", Item:"Item-1", Quantity:678, Price:132}
]);
]]>
</mx:Script>
<mx:Panel width="50%" height="50%" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<mx:AdvancedDataGrid id="myADG"
width="100%" height="100%"
initialize="gc.refresh();">
<mx:dataProvider>
<mx:GroupingCollection id="gc" source="{myData}">
<mx:grouping>
<mx:Grouping>
<mx:GroupingField name="Product"/>
</mx:Grouping>
</mx:grouping>
</mx:GroupingCollection>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Product"/>
<mx:AdvancedDataGridColumn dataField="Item"/>
<mx:AdvancedDataGridColumn dataField="Quantity"/>
<mx:AdvancedDataGridColumn dataField="Price"/>
</mx:columns>
</mx:AdvancedDataGrid>
</mx:Panel>
</mx:Application>
ASKER
Thanks ChristoferDutz.
I'm totally lost. Where we should palce this renderer? Can we have working example ?
I'm totally lost. Where we should palce this renderer? Can we have working example ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ChristoferDutz,
I already posted the source of the same example in the question(first post).
I have flat arraycollection and the example is using xmllist and hierarchal data approach and I not that familiar with and i need your help also in the following area.
Add checkbox for each row in Flex AdvanceDataGrid and indicator to the group if its rows partially selected and checked if all rows under that group were selected.
- How can we access that data for further processing, I need to use checked rows for further processing.
- add option to select/deselect all rows/groups
- show row count for each group
- allow the user to expand/collapse all nodes (groups)
please have a look on it again.
Your help is highly appreciated. (I know that your are blocked by your job ).
Thanks,
I already posted the source of the same example in the question(first post).
I have flat arraycollection and the example is using xmllist and hierarchal data approach and I not that familiar with and i need your help also in the following area.
Add checkbox for each row in Flex AdvanceDataGrid and indicator to the group if its rows partially selected and checked if all rows under that group were selected.
- How can we access that data for further processing, I need to use checked rows for further processing.
- add option to select/deselect all rows/groups
- show row count for each group
- allow the user to expand/collapse all nodes (groups)
please have a look on it again.
Your help is highly appreciated. (I know that your are blocked by your job ).
Thanks,
ASKER
More attention please.
Your support is needed.
Thanks,
Your support is needed.
Thanks,
ASKER
any update?
ASKER
Thank you for your participation.
Open in new window