Friday 12 Mar 2010   
Add Comment

Advanced Datagrid Select All

Flex / ColdFusion Tutorial #19

Why use an itemRenderer to get a check box in an AdvancedDataGrid, when it has a selectMode of 'multipleRows'? So, I wanted to select and Deselect all of the rows in a single click. The AdvancedDataGrid(ADG from now on) uses an array to store the data, and as a reference to what rows/cells are selected.

ADGSelect.mxml

This example takes advantage of the DCD functionality in Flex 4

 
 


getArtists.cfc

Simple cfc to return the data.

 
 


Demo

See this code running!


Download

Download this code as a zip!


Comments

Please have a look at http://www.flexicious.com. IT has this an a lot more of other related functionality.
Flexicious @ Friday 01 Jan 2010 - 08:39:40 AM

Click button to add a comment


Author

Rob Parkhill


Published

Wednesday 24 Jun 2009

Original

This tutorial has been modified and published with permission of the author. The original tutorial can be found here
http://agfusion.blogspot.com/2009/06/selecting-all-rows-in-advanced-data.html 

Tags

cfcomponent  cffunction  cfquery  cfreturn  cfset  mx:AdvancedDataGrid  mx:AdvancedDataGridColumn  mx:columns 

Rosetta Stone