Packagecom.flexicious.nestedtreedatagrid.valueobjects
Classpublic class SelectionInfo
InheritanceSelectionInfo Inheritance Object

When enableSelectionExclusion=true, the grid.selectionInfo points to an object of this class This class contains a boolean variable, isSelectAll, that indicates whether or not the user has the select all header checkbox selected. It also contains an array of LevelSelectionInfo objects, that contain an excludedObjects array and a selectedObjects array for each hierarchical level in this grid. When the isSelectAll flag is true, to identify the list of records that have been selected, you have to consider the entire data provider as selected, except the ones explicitly marked in each of the level selection info object's excludedObjects collection. When the isSelectAll flat is false, to identify the list of records that have been selected, you have to cnosider each of the level selection info objects, and in those objects, look at the selectedObjects collection. This will give you the selected objects at each hierarchical level in the grid. The following snippet of code tells you how to iterate through the level selection info objects in this selection info object.
	 var selection:SelectionInfo= grid.selectionInfo;
	 if(selection.isSelectAll){
	 		var userSelectedAllButThese:Array=[];
	 		for each(var level:LevelSelectionInfo in levelSelections){
	 			userSelectedAllButThese = userSelectedAllButThese.concat(level.excludedObjects);
	 		}
	 }else{
	 		var userExplicitySelected:Array=[];
	 		for each(var level:LevelSelectionInfo in levelSelections){
	 			userExplicitySelected = userExplicitySelected.concat(level.selectedObjects);
	 		}
	 }
	 



Public Properties
 PropertyDefined By
  hasAnySelections : Boolean
[read-only]
SelectionInfo
  isSelectAll : Boolean
The top level selection.
SelectionInfo
  levelSelections : Array
Array of LevelSelectionInfo
SelectionInfo
Public Methods
 MethodDefined By
  
SelectionInfo
  
toString():String
SelectionInfo
Property Detail
hasAnySelectionsproperty
hasAnySelections:Boolean  [read-only]


Implementation
    public function get hasAnySelections():Boolean
isSelectAllproperty 
public var isSelectAll:Boolean

The top level selection.

levelSelectionsproperty 
public var levelSelections:Array

Array of LevelSelectionInfo

Constructor Detail
SelectionInfo()Constructor
public function SelectionInfo()



Method Detail
toString()method
public function toString():String

Returns
String