| Package | com.flexicious.nestedtreedatagrid |
| Class | public class FlexDataGridColumnLevel |
| Inheritance | FlexDataGridColumnLevel mx.styles.CSSStyleDeclaration |
| Language Version : | ActionScript 3.0 |
A class that contains information about a nest level of grid. This includes the columns at this level, information about whether or not to enable paging, footers, filters, the row sizes of each, the property of the dataprovider to be used as the key for selection, the property of the data provider to be used as the children field, the renderers for each of the cells, etc.The Grid always contains at least one level. This is the top level, and is accessible via the columnLevel property of the grid.
One of the most important concepts behind the Architecture of Flexicious Ultimate arose from the fundamental requirement that the product was created for - that is display of Heterogeneous Hierarchical Data.
The notion of nested levels is baked in to the grid via the "columnLevel" property. This is a property of type "FlexDataGridColumnLevel". The grid always has at least one column level. This is also referred to as the top level, or the root level. In flat grids (non hierarchical), this is the only level. But in nested grids, you could have any number of nested levels.
The columns collection actually belongs to the columnLevel, and since there is one root level, the columns collection of the grid basically points to the columns collection of this root level. The FlexDataGridColumnLevel class has a "nextLevel" property, which is a pointer to another instance of the same class, or a "nextLevelRenderer" property, which is a reference to a ClassFactory the next level. Please note, currently, if you specify nextLevelRenderer, the nextLevel is ignored. This means, at the same level, you cannot have both a nested subgrid as well as a level renderer. Bottom line - use nextLevelRenderer only at the innermost level. Our examples demonstrate this.
| Property | Defined By | ||
|---|---|---|---|
| additionalFilterArgumentsFunction : Function
In scenarios where there are detached filters, this function
may be used to add on to the list of arguments before the filter is
run. | FlexDataGridColumnLevel | ||
| cellBorderFunction : Function
A function that lets you control the border drawing mechanism for each cell. | FlexDataGridColumnLevel | ||
| cellCustomBackgroundDrawFunction : Function
A function that lets you control the background drawing mechanism for each cell. | FlexDataGridColumnLevel | ||
| childrenCountField : String
A property on the object that identifies if the object has children. | FlexDataGridColumnLevel | ||
| childrenField : String
The property of the parent level object, that identifies the children that should be displayed on the next level. | FlexDataGridColumnLevel | ||
| columnGroups : Array [read-only]
Childs groups, if any. | FlexDataGridColumnLevel | ||
| columnOwnerLevel : FlexDataGridColumnLevel [read-only]
Gets the level that is the ultimate column owner. | FlexDataGridColumnLevel | ||
| columns : Array
Returns the list of columns at the root level. | FlexDataGridColumnLevel | ||
| columnWidthModeFitToContentSampleSize : Number
The number of records to inspect to identify the max size of the data in the column when columnWidthMode=fitToContent. | FlexDataGridColumnLevel | ||
| currentSorts : ArrayCollection
A List of FilterSort objects, for multi column sort support. | FlexDataGridColumnLevel | ||
| deepNestIndent : int [read-only]
Gets nestindent recursively
| FlexDataGridColumnLevel | ||
| disabledField : String
A property on the object that identifies whether the object is disabled. | FlexDataGridColumnLevel | ||
| displayOrder : String
A comma separated list of the following strings:
filter,header,body,footer,pager. | FlexDataGridColumnLevel | ||
| enableFilters : Boolean
Flag that indicates whether or not to show the filter
| FlexDataGridColumnLevel | ||
| enableFooters : Boolean
Flag that indicates whether or not to show the footer
| FlexDataGridColumnLevel | ||
| enableMultiColumnSort : Boolean [read-only]
Returns true if the nest depth is 1 and grid as the enableMultiColumnSort field enabled. | FlexDataGridColumnLevel | ||
| enablePaging : Boolean
Flag to indicate whether or not to enable paging functionality
| FlexDataGridColumnLevel | ||
| enableRowNumbers : Boolean
Flag to embed a column that shows row numbers. | FlexDataGridColumnLevel | ||
| expandCollapseCellRenderer : IFactory
Container for the expand collapse cell. | FlexDataGridColumnLevel | ||
| expandCollapseHeaderCellRenderer : IFactory
Container for the expand collapse cell. | FlexDataGridColumnLevel | ||
| filterFunction : Function
In addition to the filter row, if you wish to apply external filters, or to apply filters at inner nested levels, you may use this property. | FlexDataGridColumnLevel | ||
| filterHeight : Number
Same as filterRowHeight, except no built in logic to handle enableFilters and filterVisible. | FlexDataGridColumnLevel | ||
| filterPageSortMode : String
The Filter/Page/Sort Mode. | FlexDataGridColumnLevel | ||
| filterRowHeight : Number
Height of the filter for this level. | FlexDataGridColumnLevel | ||
| filterVisible : Boolean
If you have enableFilters set to true but want the filter row to not
appear, you can set this value. | FlexDataGridColumnLevel | ||
| flowColumns : Array [read-only]
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and itemRenderer not null
| FlexDataGridColumnLevel | ||
| flowHeaderColumnGroups : Array [read-only]
ColumnGroups where wordWrap=true || variableRowHeightUseRendererForCalculation and columnGroupRenderer is not null
| FlexDataGridColumnLevel | ||
| flowHeaderColumns : Array [read-only]
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and headerRenderer is not null
| FlexDataGridColumnLevel | ||
| footerRowHeight : Number
Height of the footer for this level. | FlexDataGridColumnLevel | ||
| footerVisible : Boolean
If you have enableFooters set to true but want the footer row to not
appear, you can set this value. | FlexDataGridColumnLevel | ||
| forcePagerRow : Boolean
Use this flag to show the pager control even if the
enablePaging is set to false. | FlexDataGridColumnLevel | ||
| grid : FlexDataGrid
The owner grid. | FlexDataGridColumnLevel | ||
| groupedColumns : Array
Grouped columns - only supported at the top level. | FlexDataGridColumnLevel | ||
| hasFilterFunction : Boolean [read-only] | FlexDataGridColumnLevel | ||
| hasGroupedColumns : Boolean = false
Flag to set if column groups exist
| FlexDataGridColumnLevel | ||
| headerHeight : int
Height of the header for this level. | FlexDataGridColumnLevel | ||
| headerSeperatorWidth : Number
Width to show the resize indicator between columns. | FlexDataGridColumnLevel | ||
| headerVisible : Boolean
Whether or not to show the header row
| FlexDataGridColumnLevel | ||
| initialSortAscending : Boolean
If true, initial sort direction for this level is ascending. | FlexDataGridColumnLevel | ||
| initialSortField : String
The property of the object on this level that should be used in the default sort. | FlexDataGridColumnLevel | ||
| isClientFilterPageSortMode : Boolean [read-only]
Returns true if filterPageSortMode==client. | FlexDataGridColumnLevel | ||
| isClientItemLoadMode : Boolean [read-only]
Returns true if itemLoadMode==client. | FlexDataGridColumnLevel | ||
| itemLoadMode : String
The Item Load Mode. | FlexDataGridColumnLevel | ||
| leftLockedColumns : Array [read-only]
Gets all left locked columns
| FlexDataGridColumnLevel | ||
| leftLockedWidth : Number [read-only]
Gets the sum of left lock column widths
| FlexDataGridColumnLevel | ||
| levelName : String
Friendly name for the level. | FlexDataGridColumnLevel | ||
| levelRendererHeight : Number
Height to assign to the renderer for each level. | FlexDataGridColumnLevel | ||
| maxDisclosureCellWidth : int [read-only]
Gets the max disclosure cell width. | FlexDataGridColumnLevel | ||
| maxPaddingCellWidth : int [read-only]
Gets the width of the padding cell. | FlexDataGridColumnLevel | ||
| minHeaderHeight : Number = 20
minimu header height
| FlexDataGridColumnLevel | ||
| nestDepth : int [read-only]
How deep in the nesting hierarchy is this item. | FlexDataGridColumnLevel | ||
| nestIndent : int
he indentation to apply to each progressive nest level. | FlexDataGridColumnLevel | ||
| nestIndentPaddingCellRenderer : IFactory
Container for the nest indent padding cell. | FlexDataGridColumnLevel | ||
| nestIndentPaddingRenderer : IFactory = null
The inner content of the padding cell. | FlexDataGridColumnLevel | ||
| nextLevel : FlexDataGridColumnLevel
Declaration of the next level of columns
| FlexDataGridColumnLevel | ||
| nextLevelRenderer : IFactory
A renderer that displays this level. | FlexDataGridColumnLevel | ||
| pagerCellRenderer : IFactory
Container for the footer renderer. | FlexDataGridColumnLevel | ||
| pagerHeight : Number
Same as pagerRowHeight, except no built in logic to handle enableFilters and filterVisible. | FlexDataGridColumnLevel | ||
| pagerPosition : String | FlexDataGridColumnLevel | ||
| pagerRenderer : IFactory
A Class that implements com.flexicious.controls.interfaces.IPager. | FlexDataGridColumnLevel | ||
| pagerRowHeight : Number
The height of the pager row. | FlexDataGridColumnLevel | ||
| pagerVisible : Boolean
If you have enablePaging set to true but want the pager row to not
appear, you can set this value. | FlexDataGridColumnLevel | ||
| pageSize : int
The number of records to display per page
| FlexDataGridColumnLevel | ||
| parentField : String
A property that points to the parent object
Used in conjunction with enableSelectionBubble property on the grid. | FlexDataGridColumnLevel | ||
| parentLevel : FlexDataGridColumnLevel [read-only]
The parent level for this level. | FlexDataGridColumnLevel | ||
| reusePreviousLevelColumns : Boolean
Setting this flag to true will resuse the columns from the previous level. | FlexDataGridColumnLevel | ||
| rightLockedColumns : Array [read-only]
Gets all right locked columns
| FlexDataGridColumnLevel | ||
| rightLockedWidth : Number [read-only] | FlexDataGridColumnLevel | ||
| rowBackgroundColorFunction : Function
A function that can be used to control the background color of each cell in this level. | FlexDataGridColumnLevel | ||
| rowDisabledFunction : Function
A function that can be used to control the enabled flag of each cell in this level. | FlexDataGridColumnLevel | ||
| rowHeight : int
Height of the row for this level. | FlexDataGridColumnLevel | ||
| rowSelectableFunction : Function
A function that can be used to control whether clicking on any cell in this level will select it. | FlexDataGridColumnLevel | ||
| rowTextColorFunction : Function
A function that can be used to control the text color of each cell in this level. | FlexDataGridColumnLevel | ||
| scrollbarPadRenderer : IFactory = null
The inner content of the scroll bar pad cell. | FlexDataGridColumnLevel | ||
| selectableField : String
A property on the object that identifies whether the object is selectable. | FlexDataGridColumnLevel | ||
| selectedCells : ArrayCollection [read-only]
A list of CellInfo objects. | FlexDataGridColumnLevel | ||
| selectedField : String
A field on the dataprovider that indicates that this item should be selected
| FlexDataGridColumnLevel | ||
| selectedItem : Object [read-only]
Returns the first item from the selectedObjects collection, if one exists at this level. | FlexDataGridColumnLevel | ||
| selectedKeyField : String
A property on the object that identifies the object uniquely. | FlexDataGridColumnLevel | ||
| selectedKeys : ArrayCollection [read-only]
A list of ID values, based on the selectedKeyField property. | FlexDataGridColumnLevel | ||
| selectedObjects : ArrayCollection [read-only]
This array is a list of all items that are have been selected by the user or programmatically, at this level. | FlexDataGridColumnLevel | ||
| styleOverrides : Object [read-only]
For 3.5 Compatibility
| FlexDataGridColumnLevel | ||
| traceCols : String [read-only] | FlexDataGridColumnLevel | ||
| unLockedColumns : Array [read-only]
Gets all unlocked columns
| FlexDataGridColumnLevel | ||
| unLockedWidth : Number [read-only]
Gets the sum of left lock column widths
| FlexDataGridColumnLevel | ||
| unSelectedObjects : ArrayCollection [read-only]
When grid.enableSelectionExclusion is set to true, a list of items that the user
explicitly unselected is stored here. | FlexDataGridColumnLevel | ||
| Method | Defined By | ||
|---|---|---|---|
| FlexDataGridColumnLevel | |||
addColumn(col:FlexDataGridColumn):void
Adds the column to the collection of columns at this level. | FlexDataGridColumnLevel | ||
addSelectedItem(item:Object):void | FlexDataGridColumnLevel | ||
addSort(sort:Object):void
For multi column sort support. | FlexDataGridColumnLevel | ||
addUnSelectedItem(item:Object):void | FlexDataGridColumnLevel | ||
adjustColumnWidths(widestWidth:Number = -1, equally:Boolean = false):void
Once we have the widest width, since we dont want the grid to appear jagged in multi levels
Adjust all columns where the widths are same so it looks like a contiguous rectangle. | FlexDataGridColumnLevel | ||
applyColumnWidthFromContent(col:FlexDataGridColumn, provider:Object):void
Given a column and a dataprovider, measures the width required to render the text in the column, and if such width
is greater than the minwidth of the column, applies that width to the column
| FlexDataGridColumnLevel | ||
areAllSelected(items:Object, checkLength:Boolean = true):Boolean
For header checkbox state, returns if all items in the grid are selected. | FlexDataGridColumnLevel | ||
areAnySelected(itemsToCheck:Object = null, recursive:Boolean = false):Boolean
Returns true if there is atleast one item in the selected keys collection
for this level, or if the next level uses this levels columns, then the
selected keys collection for the next level. | FlexDataGridColumnLevel | ||
areItemsEqual(itemA:Object, itemB:Object):Boolean | FlexDataGridColumnLevel | ||
calculateHeaderHeights():void
For columns with headerWordWrap, calculates the height required to display text in full. | FlexDataGridColumnLevel | ||
cascadeProperty(prp:String, value:*):void
Applies the passed in value to the provided property and cascades that value down to the next level, if one exists. | FlexDataGridColumnLevel | ||
checkRowDisabled(cell:IFlexDataGridCell, item:Object):Boolean
Checks disabled flag. | FlexDataGridColumnLevel | ||
checkRowSelectable(cell:IFlexDataGridCell, obj:Object):Boolean
IF rowSelectableFunction is specified, returns result of that. | FlexDataGridColumnLevel | ||
clearColumns(rebuild:Boolean = true):void
Clears out all the columns of the grid
If the parameter to rebuild is true, the grid will be rebuilt. | FlexDataGridColumnLevel | ||
clearFilter(recursive:Boolean = true):void
Removes the filter at this level, and all of this child levels, if specified. | FlexDataGridColumnLevel | ||
clearSelection(dispatch:Boolean = true):void
Clears the selected rows and cells. | FlexDataGridColumnLevel | ||
clone(transferCols:Boolean = true):FlexDataGridColumnLevel
Creates a new instance of this level, transfers all its primitive and factory
properties to the new instance, creates a clone collection of all its columns,
transfers the non primitive and factory properties of the columns to the cloned
columns and returns the new instance. | FlexDataGridColumnLevel | ||
createAscendingSortIcon():DisplayObject | FlexDataGridColumnLevel | ||
createDescendingSortIcon():DisplayObject | FlexDataGridColumnLevel | ||
Returns the filter for this level
| FlexDataGridColumnLevel | ||
dispatchEvent(event:Event):Boolean [override]
Whenever a tree datagrid event is dispatched at any level,
we also dispatch it from the top level grid so if someone wants
to listen for an event at all levels... | FlexDataGridColumnLevel | ||
Modifies the columns so the width is distributed equally. | FlexDataGridColumnLevel | ||
ensureRowNumberColumn():void | FlexDataGridColumnLevel | ||
getAvailableWidth():Number
If the grid's horizontal scroll policy is off, then returns the width of the
unlocked section minus the width of the scroll bar else returns the sum of all
column widths. | FlexDataGridColumnLevel | ||
getCheckBoxStateBasedOnExclusion(item:Object, useBubble:Boolean = true, checkDisabled:Boolean = true):String | FlexDataGridColumnLevel | ||
getChildren(object:Object, filter:Boolean = false, page:Boolean = false, sort:Boolean = false):Object
If the dataprovider is IHierarchicalCollectionView, calls the getChildren method on the incoming object. | FlexDataGridColumnLevel | ||
getChildrenLength(object:Object, filter:Boolean = false, page:Boolean = false, sort:Boolean = false):Object
Calls getChildren, and if result is XML or XMLList, returns length() else returns length;
| FlexDataGridColumnLevel | ||
getColumnByDataField(fld:String, by:String = dataField):FlexDataGridColumn
eturns the column with the specified datafield
| FlexDataGridColumnLevel | ||
getColumnByUniqueIdentifier(fld:String):FlexDataGridColumn
eturns the column with the specified UniqueIdentifier
| FlexDataGridColumnLevel | ||
getColumnGroupsAtLevel(cgLevel:int, grps:Array = null, result:Array = null, start:Number = 0, all:Boolean = false):Array
Returns the column groups specified at the level cgLevel. | FlexDataGridColumnLevel | ||
getColumns(types:Array):Array
List of visible columns of the specified lock modes. | FlexDataGridColumnLevel | ||
getColumnsByWidthMode(modes:Array):Array | FlexDataGridColumnLevel | ||
getExportableColumns(lockModes:Array = null, deep:Boolean = false, options:ExportOptions = null):Array
All visible columns where excludeFromExport=false
| FlexDataGridColumnLevel | ||
getFilterArguments():ArrayCollection
Gets the list of filter arguments at this level. | FlexDataGridColumnLevel | ||
getItemFromKey(itemKey:*, flat:Object = null):Object
Provided an item key, loops through the data provider, and finds
the item with the provided key. | FlexDataGridColumnLevel | ||
getItemKey(item:Object, saveLevel:Boolean = false):Object
If there is a selected key field (usually a field that uniquely identifies an object)
returns the value of the selectedKeyField property of the item else returns the item itself. | FlexDataGridColumnLevel | ||
getMaxColumnGroupDepth():Number
Get the maximum depth of column groups. | FlexDataGridColumnLevel | ||
getMaxColumnGroupDepthOrHeight(soFar:Number = 0, children:Array = null, what:String = depth):Number
Get the maximum depth or height of column groups. | FlexDataGridColumnLevel | ||
getNumChildren(item:Object):Number | FlexDataGridColumnLevel | ||
getOpenKeys(keys:Array, provider:Object = null):void
A list of ID values, based on the selectedKeyField property. | FlexDataGridColumnLevel | ||
getPrintableColumns(lockModes:Array = null, deep:Boolean = true):Array
All visible columns where excludeFromPrint=false
| FlexDataGridColumnLevel | ||
getRowHeight(chromeLevel:int):Number
Gets the height of the header, footer, pager if visible. | FlexDataGridColumnLevel | ||
getSelectedKeysState(allItems:Object):String
If all items are selected, returns TriStateCheckBox.STATE_CHECKED. | FlexDataGridColumnLevel | ||
getSelectedObjects(soFar:Array, getKey:Boolean = false, unSelected:Boolean = false):void
For nested datagrids, used to get all records at all levels
| FlexDataGridColumnLevel | ||
getShowableColumns(lockModes:Array = null, deep:Boolean = false):Array
ll columns that can be "hidden"
| FlexDataGridColumnLevel | ||
getSortableColumns():Array
All visible columns where sortable=true
| FlexDataGridColumnLevel | ||
getSortIndex(fld:FlexDataGridColumn, return1:Boolean = true, returnSortObject:Boolean = false):Object
Gets the index at which the given column appears in the sort list. | FlexDataGridColumnLevel | ||
getStyleValue(styleProp:String):*
If a value exists for a style property at the level return it, else return the value of the property at the grid level. | FlexDataGridColumnLevel | ||
getSumOfColumnWidths(modes:Array = null):Number
Gets the sum of all column widths. | FlexDataGridColumnLevel | ||
getValue(val:Object):Object
If value is primitive, does a tostring, if XMLList, returns the text. | FlexDataGridColumnLevel | ||
getVisibleColumns(lockModes:Array = null):Array
All columns where visible=true and lock modes match the specified lock modes. | FlexDataGridColumnLevel | ||
getWidestLeftLockedWidth(widestLeftLockedWidth:Number = -1):Number | FlexDataGridColumnLevel | ||
getWidestRightLockedWidth(widestRightLockedWidth:Number = -1):Number
Returns the widest right locked width. | FlexDataGridColumnLevel | ||
getWidestWidth(widestWidth:Number, deep:Boolean = true):Number
At each level, get the sum of column widths, and return the width at the
level with the widest width. | FlexDataGridColumnLevel | ||
Returns true if the given column is already in the sort
| FlexDataGridColumnLevel | ||
Returns true if the CellInfo for the specified item and column exists in the selectedCells collection. | FlexDataGridColumnLevel | ||
isItemEqual(itemOrKeyToCompare:Object, rowData:Object, useItemKeyForCompare:Boolean):Boolean
Provided an item or a key, and a flag that indicates what it is,
returns true if the item matches the respective comparison. | FlexDataGridColumnLevel | ||
isItemOpen(item:Object):Boolean
Returns true if the getItemKey for the specified item exists in the selectedKeys collection. | FlexDataGridColumnLevel | ||
isItemSelected(item:Object, useExclusion:Boolean = true):Boolean
Returns true if the getItemKey for the specified item exists in the selectedKeys collection. | FlexDataGridColumnLevel | ||
isItemUnSelected(item:Object):Boolean
Returns true if the getItemKey for the specified item exists in the selectedKeys collection. | FlexDataGridColumnLevel | ||
removeAllSorts():void
Removes all the sorts and calls doInvalidate. | FlexDataGridColumnLevel | ||
removeColumn(col:FlexDataGridColumn):void
Removes the column from the collection of columns at this level. | FlexDataGridColumnLevel | ||
selectAll(select:Boolean, dispatch:Boolean = true, provider:* = null, subset:Array = null, useKeys:Boolean = false, openItems:Boolean = false):Boolean
Selects or unselects everything
| FlexDataGridColumnLevel | ||
selectCell(cell:IFlexDataGridCell, selected:Boolean = true):void
elects or unselects a cell
| FlexDataGridColumnLevel | ||
selectCellByRowPositionInfo(rowInfo:RowPositionInfo, col:FlexDataGridColumn, selected:Boolean = true):void | FlexDataGridColumnLevel | ||
selectRow(item:Object, selected:Boolean = true, dispatch:Boolean = true, recurse:Boolean = true, bubble:Boolean = true, parent:Object = null):void
Selects or unselects a row - please note that the level that you call this method on should correspond to the
item that you are selecting, in other words, if you are selecting an item at level 2 (child of the top level records)
then you should call it on the second level, i.e. | FlexDataGridColumnLevel | ||
setColumnWidthsUsingWidthMode(equally:Boolean = false):void
Goes through the unlocked columns, figures out the widest width needed by each of the columns
by going through the data provider, and sets the width accordingly. | FlexDataGridColumnLevel | ||
setCurrentSort(fld:FlexDataGridColumn, asc:Boolean):void
Clears out the current sort collection and sets it to the passed in values
| FlexDataGridColumnLevel | ||
setOpenKeys(keys:Array, provider:Object = null):void
Sets the open keys at this level. | FlexDataGridColumnLevel | ||
setSelectedItemsBasedOnSelectedField(items:Object, parent:Object = null, openItems:Boolean = true):Boolean
Iterates through items, checks to see if the selected bit is on, and if so, adds it to the open list. | FlexDataGridColumnLevel | ||
setSelectedKeys(objects:Array, openItems:Boolean = true):void
For nested/grouped hierarchical datagrids, used to select records. | FlexDataGridColumnLevel | ||
setSelectedKeysState(val:String):void
Sets the selected state at this level. | FlexDataGridColumnLevel | ||
setSelectedObjects(objects:Array, openItems:Boolean = true):void
For nested/grouped hierarchical datagrids, used to select records. | FlexDataGridColumnLevel | ||
shiftColumns(columnToInsert:FlexDataGridColumn, insertBefore:FlexDataGridColumn, movingCg:Boolean = false):void
Inserts the column specified column before the specified column
| FlexDataGridColumnLevel | ||
showColumns(colsToShow:ArrayCollection):void
Sets the visible flag on all columns except the ones specified in the list to false. | FlexDataGridColumnLevel | ||
showPrintableColumns():void
Sets the visible flag on all columns except the ones where excludeFromPrint=true. | FlexDataGridColumnLevel | ||
| Method | Defined By | ||
|---|---|---|---|
cloneColumn(col:Object):Object | FlexDataGridColumnLevel | ||
createSortArrow(d:Boolean):DisplayObject | FlexDataGridColumnLevel | ||
pushIntoChain(chain:Array, item:Object):void | FlexDataGridColumnLevel | ||
storeChain(item:Object):void | FlexDataGridColumnLevel | ||
swapColumns(cg:FlexDataGridColumnGroup, columnToInsert:FlexDataGridColumn, insertBefore:FlexDataGridColumn):void | FlexDataGridColumnLevel | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when row selection or cell selection changes. | FlexDataGridColumnLevel | |||
| ispatched when the columns at this level are resized | FlexDataGridColumnLevel | |||
| Dispatched when the grid's page, sort or filter state changes. | FlexDataGridColumnLevel | |||
| Dispatched when any header cell is clicked | FlexDataGridColumnLevel | |||
| Dispatched when user clicks on a row in row selection mode or cell in cell selection mode | FlexDataGridColumnLevel | |||
| Dispatched when an item opens, both in server and client mode | FlexDataGridColumnLevel | |||
| Dispatched when user double clicks on a row in row selection mode or cell in cell selection mode | FlexDataGridColumnLevel | |||
| Dispatched when the editor is instantiated. | FlexDataGridColumnLevel | |||
| Dispatched when the user attempts to edit an item. | FlexDataGridColumnLevel | |||
| Dispatched when the edit session is cancelled. | FlexDataGridColumnLevel | |||
| Dispatched when the edit session ends. | FlexDataGridColumnLevel | |||
| Dispatched just before committing the value of the editorDataField property of the editor to the property specified by the datafield property of the column of the item being edited. | FlexDataGridColumnLevel | |||
| Dispatched only in server mode, when an item opens for the first time. | FlexDataGridColumnLevel | |||
| Dispatched when an item opens, both in server and client mode | FlexDataGridColumnLevel | |||
| Dispatched when an item opens, both in server and client mode | FlexDataGridColumnLevel | |||
| Dispatched when user rolls out of a row in row selection mode or cell in cell selection mode | FlexDataGridColumnLevel | |||
| Dispatched when user rolls over a row in row selection mode or cell in cell selection mode | FlexDataGridColumnLevel | |||
| additionalFilterArgumentsFunction | property |
additionalFilterArgumentsFunction:FunctionIn scenarios where there are detached filters, this function may be used to add on to the list of arguments before the filter is run. The function must take a column level as the only parameter, and return an array collection of the filter expressions.
public function get additionalFilterArgumentsFunction():Function public function set additionalFilterArgumentsFunction(value:Function):void| cellBorderFunction | property |
cellBorderFunction:FunctionA function that lets you control the border drawing mechanism for each cell. By default, each cell will draw a 1px wide line to its right and bottom ends. This function offers you the opportunity to hook into this mechanism, and draw your own border using the graphics property of the FlexDataGridCell object, that is passed in as a parameter to this function. If this function returns false, the default border is not drawn.
public function get cellBorderFunction():Function public function set cellBorderFunction(value:Function):void| cellCustomBackgroundDrawFunction | property |
cellCustomBackgroundDrawFunction:FunctionA function that lets you control the background drawing mechanism for each cell. By default, each cell will draw a background on basis of the XXXXColors style property and XXXXRollOverColors style property, where XXXX= header,filter,pager,footer,renderer or blank. This function offers you the opportunity to hook into this mechanism, and draw your own background using the graphics property of the FlexDataGridCell object, that is passed in as a parameter to this function. If this function returns false, the default background is not drawn.
public function get cellCustomBackgroundDrawFunction():Function public function set cellCustomBackgroundDrawFunction(value:Function):void| childrenCountField | property |
childrenCountField:StringA property on the object that identifies if the object has children. Only needed in filterPageSortMode=server In lazy loaded (filterPageSortMode=server) hierarchical grids levels, the child level items are loaded when the user actually expands this level for the first time. In scenarios where it is known initially that there are children, set this property to the value of the object that identifies whether there are children. If this property is set, the expand collapse icon will be drawn only when the value of this property on the object returns an integer greater than zero. Otherwise, the level will always draw the expand collapse icon.
public function get childrenCountField():String public function set childrenCountField(value:String):void| childrenField | property |
childrenField:StringThe property of the parent level object, that identifies the children that should be displayed on the next level. This is only required if the collection is not a hierarchical view. Please note, in server mode, this property is also the "storage" for the lazy loaded children. See the Partially and Lazy Loaded Server Grid examples for more details
public function get childrenField():String public function set childrenField(value:String):void| columnGroups | property |
columnGroups:Array [read-only] Childs groups, if any.
public function get columnGroups():Array| columnOwnerLevel | property |
columnOwnerLevel:FlexDataGridColumnLevel [read-only] Gets the level that is the ultimate column owner.
public function get columnOwnerLevel():FlexDataGridColumnLevel| columns | property |
columns:ArrayReturns the list of columns at the root level. The grid always has at least one column level. This is also referred to as the top level, or the root level. In flat grids (non hierarchical), this is the only level. But in nested grids, you could have any number of nested levels. The columns collection actually belongs to the columnLevel, and since there is one root level, the columns collection of the grid basically points to the columns collection of this root level. Note : If you set the columns or the grouped columns dynamically, ensure you call grid.columnLevel.initializeLevel(grid);
public function get columns():Array public function set columns(value:Array):void| columnWidthModeFitToContentSampleSize | property |
columnWidthModeFitToContentSampleSize:NumberThe number of records to inspect to identify the max size of the data in the column when columnWidthMode=fitToContent. When you have very large datasets, it will be very slow if you inspect every row to identify the largest string to come up with the column width. So we inspect only the first columnWidthModeFitToContentSampleSize rows.
The default value is 100.
public function get columnWidthModeFitToContentSampleSize():Number public function set columnWidthModeFitToContentSampleSize(value:Number):void| currentSorts | property |
currentSorts:ArrayCollectionA List of FilterSort objects, for multi column sort support.
public function get currentSorts():ArrayCollection public function set currentSorts(value:ArrayCollection):void| deepNestIndent | property |
deepNestIndent:int [read-only] Gets nestindent recursively
public function get deepNestIndent():int| disabledField | property |
disabledField:StringA property on the object that identifies whether the object is disabled.
public function get disabledField():String public function set disabledField(value:String):void| displayOrder | property |
displayOrder:StringA comma separated list of the following strings: filter,header,body,footer,pager. Changes the order in which the grid displays the filter,header,body,footer,pager The order in which the various sections of the grid are laid out. Defaults to pager,filter,body,footer
public function get displayOrder():String public function set displayOrder(value:String):void| enableFilters | property |
enableFilters:BooleanFlag that indicates whether or not to show the filter
This property can be used as the source for data binding.
public function get enableFilters():Boolean public function set enableFilters(value:Boolean):void| enableFooters | property |
enableFooters:BooleanFlag that indicates whether or not to show the footer
This property can be used as the source for data binding.
public function get enableFooters():Boolean public function set enableFooters(value:Boolean):void| enableMultiColumnSort | property |
enableMultiColumnSort:Boolean [read-only] Returns true if the nest depth is 1 and grid as the enableMultiColumnSort field enabled.
public function get enableMultiColumnSort():Boolean| enablePaging | property |
enablePaging:BooleanFlag to indicate whether or not to enable paging functionality
This property can be used as the source for data binding.
public function get enablePaging():Boolean public function set enablePaging(value:Boolean):void| enableRowNumbers | property |
enableRowNumbers:BooleanFlag to embed a column that shows row numbers.
public function get enableRowNumbers():Boolean public function set enableRowNumbers(value:Boolean):void| expandCollapseCellRenderer | property |
expandCollapseCellRenderer:IFactoryContainer for the expand collapse cell. Needs to inherit from FlexDataGridExpandCollapseCell. Defaults to FlexDataGridExpandCollapseCell
public function get expandCollapseCellRenderer():IFactory public function set expandCollapseCellRenderer(value:IFactory):void| expandCollapseHeaderCellRenderer | property |
expandCollapseHeaderCellRenderer:IFactoryContainer for the expand collapse cell. Needs to inherit from FlexDataGridExpandCollapseHeaderCell. Defaults to FlexDataGridExpandCollapseHeaderCell
public function get expandCollapseHeaderCellRenderer():IFactory public function set expandCollapseHeaderCellRenderer(value:IFactory):void| filterFunction | property |
filterFunction:FunctionIn addition to the filter row, if you wish to apply external filters, or to apply filters at inner nested levels, you may use this property. Works just like ListCollectionView.filterFunction
public function get filterFunction():Function public function set filterFunction(value:Function):void| filterHeight | property |
filterHeight:NumberSame as filterRowHeight, except no built in logic to handle enableFilters and filterVisible.
public function get filterHeight():Number public function set filterHeight(value:Number):void| filterPageSortMode | property |
filterPageSortMode:StringThe Filter/Page/Sort Mode. Can be either "server" or "client". In client mode, the grid will take care of paging, sorting and filtering once the dataprovider is set. In server mode, the grid will fire a com.flexicious.nestedtreedatagrid.events.ExtendedFilterPageSortChangeEvent named filterPageSortChange that should be used to construct an appropriate query to be sent to the backend.
The default value is "client".
public function get filterPageSortMode():String public function set filterPageSortMode(value:String):voidSee also
| filterRowHeight | property |
filterRowHeight:NumberHeight of the filter for this level. Defaults to 25
public function get filterRowHeight():Number public function set filterRowHeight(value:Number):void| filterVisible | property |
filterVisible:BooleanIf you have enableFilters set to true but want the filter row to not appear, you can set this value.
public function get filterVisible():Boolean public function set filterVisible(value:Boolean):void| flowColumns | property |
flowColumns:Array [read-only] Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and itemRenderer not null
public function get flowColumns():Array| flowHeaderColumnGroups | property |
flowHeaderColumnGroups:Array [read-only] ColumnGroups where wordWrap=true || variableRowHeightUseRendererForCalculation and columnGroupRenderer is not null
public function get flowHeaderColumnGroups():Array| flowHeaderColumns | property |
flowHeaderColumns:Array [read-only] Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and headerRenderer is not null
public function get flowHeaderColumns():Array| footerRowHeight | property |
footerRowHeight:NumberHeight of the footer for this level. Defaults to 25
public function get footerRowHeight():Number public function set footerRowHeight(value:Number):void| footerVisible | property |
footerVisible:BooleanIf you have enableFooters set to true but want the footer row to not appear, you can set this value.
public function get footerVisible():Boolean public function set footerVisible(value:Boolean):void| forcePagerRow | property |
forcePagerRow:BooleanUse this flag to show the pager control even if the enablePaging is set to false. This is used in a scenario where you wish to show buttons other than the paging buttons in the pager bar.
public function get forcePagerRow():Boolean public function set forcePagerRow(value:Boolean):void| grid | property |
grid:FlexDataGridThe owner grid.
public function get grid():FlexDataGrid public function set grid(value:FlexDataGrid):void| groupedColumns | property |
groupedColumns:ArrayGrouped columns - only supported at the top level.
public function get groupedColumns():Array public function set groupedColumns(value:Array):void| hasFilterFunction | property |
hasFilterFunction:Boolean [read-only] public function get hasFilterFunction():Boolean| hasGroupedColumns | property |
public var hasGroupedColumns:Boolean = falseFlag to set if column groups exist
| headerHeight | property |
headerHeight:intHeight of the header for this level. Defaults to 25
public function get headerHeight():int public function set headerHeight(value:int):void| headerSeperatorWidth | property |
headerSeperatorWidth:NumberWidth to show the resize indicator between columns. Defaults to 4
public function get headerSeperatorWidth():Number public function set headerSeperatorWidth(value:Number):void| headerVisible | property |
headerVisible:BooleanWhether or not to show the header row
public function get headerVisible():Boolean public function set headerVisible(value:Boolean):void| initialSortAscending | property |
initialSortAscending:BooleanIf true, initial sort direction for this level is ascending. Defaults to true.
public function get initialSortAscending():Boolean public function set initialSortAscending(value:Boolean):void| initialSortField | property |
initialSortField:StringThe property of the object on this level that should be used in the default sort.
public function get initialSortField():String public function set initialSortField(value:String):void| isClientFilterPageSortMode | property |
isClientFilterPageSortMode:Boolean [read-only] Returns true if filterPageSortMode==client.
public function get isClientFilterPageSortMode():Boolean| isClientItemLoadMode | property |
isClientItemLoadMode:Boolean [read-only] Returns true if itemLoadMode==client.
public function get isClientItemLoadMode():Boolean| itemLoadMode | property |
itemLoadMode:StringThe Item Load Mode. Can be either "server" or "client". In client mode, the grid will assume that the children of items at this level are prefreched. In server mode, the grid will dispatch a ITEM_LOAD event (itemLoad) that should be used to construct an appropriate query to be sent to the backend, to retrieve the child objects at this level. Once the results are retrieved, please call the "setChildData" method on the grid to set the results at this level. Please note, the "childrenField" is still required at this level, because that is where the setChildData method persists the loaded children. Future itemOpen events do not result in itemLoads because the data for this particular entity has already been loaded and persisted.
The default value is "client".
public function get itemLoadMode():String public function set itemLoadMode(value:String):void| leftLockedColumns | property |
leftLockedColumns:Array [read-only] Gets all left locked columns
public function get leftLockedColumns():Array| leftLockedWidth | property |
leftLockedWidth:Number [read-only] Gets the sum of left lock column widths
public function get leftLockedWidth():Number| levelName | property |
levelName:StringFriendly name for the level. Not a required field
public function get levelName():String public function set levelName(value:String):void| levelRendererHeight | property |
levelRendererHeight:NumberHeight to assign to the renderer for each level. If not specified, a new instance of the level renderer is created, and the height is defaulted to the height of that one instance. The same height is then reused for subsequent renderers of the same type.
public function get levelRendererHeight():Number public function set levelRendererHeight(value:Number):void| maxDisclosureCellWidth | property |
maxDisclosureCellWidth:int [read-only] Gets the max disclosure cell width.
public function get maxDisclosureCellWidth():int| maxPaddingCellWidth | property |
maxPaddingCellWidth:int [read-only] Gets the width of the padding cell.
public function get maxPaddingCellWidth():int| minHeaderHeight | property |
public var minHeaderHeight:Number = 20minimu header height
| nestDepth | property |
nestDepth:int [read-only] How deep in the nesting hierarchy is this item. Starts at 1 for the columnLevel that belongs to the grid.
public function get nestDepth():int| nestIndent | property |
nestIndent:inthe indentation to apply to each progressive nest level.
The default value is 15.
public function get nestIndent():int public function set nestIndent(value:int):void| nestIndentPaddingCellRenderer | property |
nestIndentPaddingCellRenderer:IFactoryContainer for the nest indent padding cell. Needs to inherit from FlexDataGridExpandCollapseHeaderCell. Defaults to FlexDataGridExpandCollapseCell
public function get nestIndentPaddingCellRenderer():IFactory public function set nestIndentPaddingCellRenderer(value:IFactory):void| nestIndentPaddingRenderer | property |
public var nestIndentPaddingRenderer:IFactory = nullThe inner content of the padding cell. Defaults to a plain old UI component
| nextLevel | property |
nextLevel:FlexDataGridColumnLevelDeclaration of the next level of columns
public function get nextLevel():FlexDataGridColumnLevel public function set nextLevel(value:FlexDataGridColumnLevel):void| nextLevelRenderer | property |
nextLevelRenderer:IFactoryA renderer that displays this level. If you specify a value for this, the columns are ignored, and instead of drawing a nested data grid at this level, an instance of the levelRenderer is displayed. All paging, footers, headers and other properties related to hierarchical display are also ignored. A level that has a levelRenderer cannot have subsequent levels. So, this is usually the innermost level. Please ensure that you explictly specify a levelRendererHeight so the vertical height of the grid can be correctly calculated.
public function get nextLevelRenderer():IFactory public function set nextLevelRenderer(value:IFactory):void| pagerCellRenderer | property |
pagerCellRenderer:IFactoryContainer for the footer renderer. Needs to inherit from FlexDataGridPagerCell. Defaults to FlexDataGridPagerCell
public function get pagerCellRenderer():IFactory public function set pagerCellRenderer(value:IFactory):void| pagerHeight | property |
pagerHeight:NumberSame as pagerRowHeight, except no built in logic to handle enableFilters and filterVisible.
public function get pagerHeight():Number public function set pagerHeight(value:Number):void| pagerPosition | property |
pagerPosition:String
public function get pagerPosition():String public function set pagerPosition(value:String):voidSee also
| pagerRenderer | property |
pagerRenderer:IFactoryA Class that implements com.flexicious.controls.interfaces.IPager. Defaults to a built in implementation
public function get pagerRenderer():IFactory public function set pagerRenderer(value:IFactory):voidSee also
| pagerRowHeight | property |
pagerRowHeight:NumberThe height of the pager row. If not set, defaults to the value of the rowHeight property
public function get pagerRowHeight():Number public function set pagerRowHeight(value:Number):void| pagerVisible | property |
pagerVisible:BooleanIf you have enablePaging set to true but want the pager row to not appear, you can set this value.
public function get pagerVisible():Boolean public function set pagerVisible(value:Boolean):void| pageSize | property |
pageSize:intThe number of records to display per page
This property can be used as the source for data binding.
public function get pageSize():int public function set pageSize(value:int):void| parentField | property |
parentField:StringA property that points to the parent object Used in conjunction with enableSelectionBubble property on the grid.
public function get parentField():String public function set parentField(value:String):void| parentLevel | property |
parentLevel:FlexDataGridColumnLevel [read-only] The parent level for this level. For the root level, this is null.
public function get parentLevel():FlexDataGridColumnLevel| reusePreviousLevelColumns | property |
reusePreviousLevelColumns:BooleanSetting this flag to true will resuse the columns from the previous level. Set this flag to true if you want the grid to behave like the advanced datagrid, where there is one set of columns for hierarchical data.
public function get reusePreviousLevelColumns():Boolean public function set reusePreviousLevelColumns(value:Boolean):void| rightLockedColumns | property |
rightLockedColumns:Array [read-only] Gets all right locked columns
public function get rightLockedColumns():Array| rightLockedWidth | property |
rightLockedWidth:Number [read-only] public function get rightLockedWidth():Number| rowBackgroundColorFunction | property |
rowBackgroundColorFunction:FunctionA function that can be used to control the background color of each cell in this level. If this function is null or returns null, the cell background will use the alternatingItemColors style property. This function should take a IFlexDataGridDataCell object, which has a pointer to the row data (data) as well as other related information found in the documentation of the FlexDataGridDataCell class. This function should return an array of colors for a gradient fill, or a single color hex code (uint) for a single color fill.
public function get rowBackgroundColorFunction():Function public function set rowBackgroundColorFunction(value:Function):void| rowDisabledFunction | property |
rowDisabledFunction:FunctionA function that can be used to control the enabled flag of each cell in this level. If this function is null or returns null, the cell will be enabled, selectable, and rollovers will work. If this function returns false, the cell will not be selectable, the item renderers will be disabled and it will have no rollovers. This function has two parameters: 1) IFlexDataGridDataCell : Cell object which has a pointer to the row data (data) as well as other related information found in the documentation of the FlexDataGridDataCell class. This parameter can be null, when the function is called as a response to a higher level checkbox select. For example, when the user hits select all. In this case, we do not always have a cell, and it will be passed in as null 2) The actual data object bound to the row. This function should true or false. For example: private function rowDisabledFunction(cell:FlexDataGridCell,data:Object):Boolean{ return data.enabledl }
public function get rowDisabledFunction():Function public function set rowDisabledFunction(value:Function):void| rowHeight | property |
rowHeight:intHeight of the row for this level. Defaults to 25
public function get rowHeight():int public function set rowHeight(value:int):void| rowSelectableFunction | property |
rowSelectableFunction:FunctionA function that can be used to control whether clicking on any cell in this level will select it. If this function is null or returns false, clicking on the cell will not result in the row being selected. If this function returns true, clicking on the cell will result in the row being selected in row selection modes only. This function has two parameters: 1) IFlexDataGridDataCell : Cell object which has a pointer to the row data (data) as well as other related information found in the documentation of the IFlexDataGridDataCell class. This parameter can be null, when the function is called as a response to a higher level checkbox select. For example, when the user hits select all. In this case, we do not always have a cell, and it will be passed in as null 2) The actual data object bound to the row. This function should true or false. For example: private function rowSelectableFunction(cell:FlexDataGridCell,data:Object):Boolean{ return data.enabled; }
public function get rowSelectableFunction():Function public function set rowSelectableFunction(value:Function):void| rowTextColorFunction | property |
rowTextColorFunction:FunctionA function that can be used to control the text color of each cell in this level. If this function is null or returns null, the cell text will use the alternatingTextColors style property. This function should take a IFlexDataGridDataCell object, which has a pointer to the row data (data) as well as other related information found in the documentation of the FlexDataGridDataCell. This function should return a single color hex code (uint).
public function get rowTextColorFunction():Function public function set rowTextColorFunction(value:Function):void| scrollbarPadRenderer | property |
public var scrollbarPadRenderer:IFactory = nullThe inner content of the scroll bar pad cell. Defaults to a plain old UI component
| selectableField | property |
selectableField:StringA property on the object that identifies whether the object is selectable.
public function get selectableField():String public function set selectableField(value:String):void| selectedCells | property |
selectedCells:ArrayCollection [read-only]
A list of CellInfo objects. When grid.selectionMode=SINGLE_CELL, this collection contains only one item
public function get selectedCells():ArrayCollection| selectedField | property |
public var selectedField:StringA field on the dataprovider that indicates that this item should be selected
| selectedItem | property |
selectedItem:Object [read-only] Returns the first item from the selectedObjects collection, if one exists at this level. If there is none, then returns the selectedItem collection of the next level.
public function get selectedItem():Object| selectedKeyField | property |
selectedKeyField:StringA property on the object that identifies the object uniquely. Similar to a surrogate key, or a business key, as long as it uniquely identifies the object. When this property is set, the selected keys returns the ID values of the objects that were selected. When a row is selected in the grid, we store the selectedKeyField property of the selected object in this array collection. This allows for multiple pages of data that comes down from the server and not maintained in memory to still keep track of the ids that were selected on other pages.
public function get selectedKeyField():String public function set selectedKeyField(value:String):void| selectedKeys | property |
selectedKeys:ArrayCollection [read-only] A list of ID values, based on the selectedKeyField property. When a row is selected in the grid, we store the selectedKeyField property of the selected object in this array collection. This allows for multiple pages of data that comes down from the server and not maintained in memory to still keep track of the ids that were selected on other pages.
public function get selectedKeys():ArrayCollection| selectedObjects | property |
selectedObjects:ArrayCollection [read-only] This array is a list of all items that are have been selected by the user or programmatically, at this level. Please note, for hierarchical grids, each level has its own collection of selected keys. The grid.selectedObjects returns the selectedKeys at the top level. To access the selected keys at a lower level, you may navigate to that level using grid.columnLevel.nextLevel...nextLevel.selectedKeys You can also call grid.getSelectedObjects to get selected objects at all levels.
public function get selectedObjects():ArrayCollection| styleOverrides | property |
styleOverrides:Object [read-only] For 3.5 Compatibility
public function get styleOverrides():Object| traceCols | property |
traceCols:String [read-only] public function get traceCols():String| unLockedColumns | property |
unLockedColumns:Array [read-only] Gets all unlocked columns
public function get unLockedColumns():Array| unLockedWidth | property |
unLockedWidth:Number [read-only] Gets the sum of left lock column widths
public function get unLockedWidth():Number| unSelectedObjects | property |
unSelectedObjects:ArrayCollection [read-only] When grid.enableSelectionExclusion is set to true, a list of items that the user explicitly unselected is stored here.
public function get unSelectedObjects():ArrayCollection| FlexDataGridColumnLevel | () | Constructor |
public function FlexDataGridColumnLevel()| addColumn | () | method |
public function addColumn(col:FlexDataGridColumn):voidAdds the column to the collection of columns at this level. Deprecated. Use columns setter instead. var cols:Array=level.columns; //manipulate cols level.columns=cols;
Parameters
col:FlexDataGridColumn |
| addSelectedItem | () | method |
public function addSelectedItem(item:Object):voidParameters
item:Object |
| addSort | () | method |
public function addSort(sort:Object):voidFor multi column sort support.
Parameters
sort:Object |
| addUnSelectedItem | () | method |
public function addUnSelectedItem(item:Object):voidParameters
item:Object |
| adjustColumnWidths | () | method |
public function adjustColumnWidths(widestWidth:Number = -1, equally:Boolean = false):voidOnce we have the widest width, since we dont want the grid to appear jagged in multi levels Adjust all columns where the widths are same so it looks like a contiguous rectangle. If the equally parameter is set to true, it will sum up the total column widths, and resize them all equally.
Parameters
widestWidth:Number (default = -1) | |
equally:Boolean (default = false) |
| applyColumnWidthFromContent | () | method |
public function applyColumnWidthFromContent(col:FlexDataGridColumn, provider:Object):voidGiven a column and a dataprovider, measures the width required to render the text in the column, and if such width is greater than the minwidth of the column, applies that width to the column
Parameters
col:FlexDataGridColumn — The FlexDataGridColumn object
| |
provider:Object — The provider used to figure out the text width. You may use the grid.flatten(this.nestDepth,false,true,true,true,columnWidthModeFitToContentSampleSize);
|
| areAllSelected | () | method |
public function areAllSelected(items:Object, checkLength:Boolean = true):BooleanFor header checkbox state, returns if all items in the grid are selected.
Parameters
items:Object | |
checkLength:Boolean (default = true) |
Boolean |
| areAnySelected | () | method |
public function areAnySelected(itemsToCheck:Object = null, recursive:Boolean = false):BooleanReturns true if there is atleast one item in the selected keys collection for this level, or if the next level uses this levels columns, then the selected keys collection for the next level.
Parameters
itemsToCheck:Object (default = null) | |
recursive:Boolean (default = false) |
Boolean |
| areItemsEqual | () | method |
public function areItemsEqual(itemA:Object, itemB:Object):BooleanParameters
itemA:Object | |
itemB:Object |
Boolean |
| calculateHeaderHeights | () | method |
public function calculateHeaderHeights():voidFor columns with headerWordWrap, calculates the height required to display text in full.
| cascadeProperty | () | method |
public function cascadeProperty(prp:String, value:*):voidApplies the passed in value to the provided property and cascades that value down to the next level, if one exists.
Parameters
prp:String — The property to apply
| |
value:* — The value to apply
|
| checkRowDisabled | () | method |
public function checkRowDisabled(cell:IFlexDataGridCell, item:Object):BooleanChecks disabled flag.
Parameters
cell:IFlexDataGridCell | |
item:Object |
Boolean |
| checkRowSelectable | () | method |
public function checkRowSelectable(cell:IFlexDataGridCell, obj:Object):BooleanIF rowSelectableFunction is specified, returns result of that. If selectableField is specified, returns value of that on the obj object Else returns true
Parameters
cell:IFlexDataGridCell | |
obj:Object |
Boolean |
| clearColumns | () | method |
public function clearColumns(rebuild:Boolean = true):voidClears out all the columns of the grid If the parameter to rebuild is true, the grid will be rebuilt. Otherwise, just the columns will be cleared, and the consumer code should rebuild the grid.
Parameters
rebuild:Boolean (default = true) |
| clearFilter | () | method |
public function clearFilter(recursive:Boolean = true):voidRemoves the filter at this level, and all of this child levels, if specified.
Parameters
recursive:Boolean (default = true) |
| clearSelection | () | method |
public function clearSelection(dispatch:Boolean = true):voidClears the selected rows and cells.
Parameters
dispatch:Boolean (default = true) |
| clone | () | method |
public function clone(transferCols:Boolean = true):FlexDataGridColumnLevelCreates a new instance of this level, transfers all its primitive and factory properties to the new instance, creates a clone collection of all its columns, transfers the non primitive and factory properties of the columns to the cloned columns and returns the new instance.
Parameters
transferCols:Boolean (default = true) |
FlexDataGridColumnLevel —
|
| cloneColumn | () | method |
protected function cloneColumn(col:Object):ObjectParameters
col:Object |
Object |
| createAscendingSortIcon | () | method |
public function createAscendingSortIcon():DisplayObjectReturnsDisplayObject |
| createDescendingSortIcon | () | method |
public function createDescendingSortIcon():DisplayObjectReturnsDisplayObject |
| createFilter | () | method |
public function createFilter(parentObject:Object, inFilter:Filter):AdvancedFilterReturns the filter for this level
Parameters
parentObject:Object | |
inFilter:Filter |
AdvancedFilter |
| createSortArrow | () | method |
protected function createSortArrow(d:Boolean):DisplayObjectParameters
d:Boolean |
DisplayObject |
| dispatchEvent | () | method |
override public function dispatchEvent(event:Event):BooleanWhenever a tree datagrid event is dispatched at any level, we also dispatch it from the top level grid so if someone wants to listen for an event at all levels...
Parameters
event:Event |
Boolean |
| distributeColumnWidthsEqually | () | method |
public function distributeColumnWidthsEqually():voidModifies the columns so the width is distributed equally. Columns that are fixedWidth are not updated.
| ensureRowNumberColumn | () | method |
public function ensureRowNumberColumn():void| getAvailableWidth | () | method |
public function getAvailableWidth():NumberIf the grid's horizontal scroll policy is off, then returns the width of the unlocked section minus the width of the scroll bar else returns the sum of all column widths.
ReturnsNumber |
| getCheckBoxStateBasedOnExclusion | () | method |
public function getCheckBoxStateBasedOnExclusion(item:Object, useBubble:Boolean = true, checkDisabled:Boolean = true):StringParameters
item:Object | |
useBubble:Boolean (default = true) | |
checkDisabled:Boolean (default = true) |
String |
| getChildren | () | method |
public function getChildren(object:Object, filter:Boolean = false, page:Boolean = false, sort:Boolean = false):ObjectIf the dataprovider is IHierarchicalCollectionView, calls the getChildren method on the incoming object. Else returns the value of the level.childrenField property on the object being passed in
Parameters
object:Object | |
filter:Boolean (default = false) | |
page:Boolean (default = false) | |
sort:Boolean (default = false) |
Object |
| getChildrenLength | () | method |
public function getChildrenLength(object:Object, filter:Boolean = false, page:Boolean = false, sort:Boolean = false):ObjectCalls getChildren, and if result is XML or XMLList, returns length() else returns length;
Parameters
object:Object | |
filter:Boolean (default = false) | |
page:Boolean (default = false) | |
sort:Boolean (default = false) |
Object |
| getColumnByDataField | () | method |
public function getColumnByDataField(fld:String, by:String = dataField):FlexDataGridColumneturns the column with the specified datafield
Parameters
fld:String | |
by:String (default = dataField) |
FlexDataGridColumn |
| getColumnByUniqueIdentifier | () | method |
public function getColumnByUniqueIdentifier(fld:String):FlexDataGridColumneturns the column with the specified UniqueIdentifier
Parameters
fld:String |
FlexDataGridColumn |
| getColumnGroupsAtLevel | () | method |
public function getColumnGroupsAtLevel(cgLevel:int, grps:Array = null, result:Array = null, start:Number = 0, all:Boolean = false):ArrayReturns the column groups specified at the level cgLevel.
Parameters
cgLevel:int | |
grps:Array (default = null) | |
result:Array (default = null) | |
start:Number (default = 0) | |
all:Boolean (default = false) |
Array |
| getColumns | () | method |
public function getColumns(types:Array):ArrayList of visible columns of the specified lock modes.
Parameters
types:Array |
Array |
| getColumnsByWidthMode | () | method |
public function getColumnsByWidthMode(modes:Array):ArrayParameters
modes:Array |
Array |
| getExportableColumns | () | method |
public function getExportableColumns(lockModes:Array = null, deep:Boolean = false, options:ExportOptions = null):ArrayAll visible columns where excludeFromExport=false
Parameters
lockModes:Array (default = null) | |
deep:Boolean (default = false) | |
options:ExportOptions (default = null) |
Array |
| getFilterArguments | () | method |
public function getFilterArguments():ArrayCollectionGets the list of filter arguments at this level.
ReturnsArrayCollection |
| getItemFromKey | () | method |
public function getItemFromKey(itemKey:*, flat:Object = null):ObjectProvided an item key, loops through the data provider, and finds the item with the provided key.
Parameters
itemKey:* | |
flat:Object (default = null) |
Object |
| getItemKey | () | method |
public function getItemKey(item:Object, saveLevel:Boolean = false):ObjectIf there is a selected key field (usually a field that uniquely identifies an object) returns the value of the selectedKeyField property of the item else returns the item itself. If saveLevel is set to true, returns a string in the format key|levelNestDepth. Use this in cases where you wish to refresh the grid with new data from the server and open items should only refer to the keys so the open state can be persisted across server roundtrips.
Parameters
item:Object | |
saveLevel:Boolean (default = false) |
Object |
| getMaxColumnGroupDepth | () | method |
public function getMaxColumnGroupDepth():NumberGet the maximum depth of column groups.
ReturnsNumber |
| getMaxColumnGroupDepthOrHeight | () | method |
public function getMaxColumnGroupDepthOrHeight(soFar:Number = 0, children:Array = null, what:String = depth):NumberGet the maximum depth or height of column groups.
Parameters
soFar:Number (default = 0) | |
children:Array (default = null) | |
what:String (default = depth) |
Number |
| getNumChildren | () | method |
public function getNumChildren(item:Object):NumberParameters
item:Object |
Number |
| getOpenKeys | () | method |
public function getOpenKeys(keys:Array, provider:Object = null):voidA list of ID values, based on the selectedKeyField property. For hierarchical datagrids, used to get all open(expanded) records at all levels. Please NOTE - this is a read only collection. Adding to this does nothing. If you want to programatically modify the collapse expand, use the setOpenKeys instead, or add directly to the open items.
Parameters
keys:Array | |
provider:Object (default = null) |
| getPrintableColumns | () | method |
public function getPrintableColumns(lockModes:Array = null, deep:Boolean = true):ArrayAll visible columns where excludeFromPrint=false
Parameters
lockModes:Array (default = null) | |
deep:Boolean (default = true) |
Array |
| getRowHeight | () | method |
public function getRowHeight(chromeLevel:int):NumberGets the height of the header, footer, pager if visible.
Parameters
chromeLevel:int |
Number |
| getSelectedKeysState | () | method |
public function getSelectedKeysState(allItems:Object):StringIf all items are selected, returns TriStateCheckBox.STATE_CHECKED. If none are selected, returns TriStateCheckBox.STATE_UNCHECKED else returns TriStateCheckBox.STATE_MIDDLE
Parameters
allItems:Object |
String |
| getSelectedObjects | () | method |
public function getSelectedObjects(soFar:Array, getKey:Boolean = false, unSelected:Boolean = false):voidFor nested datagrids, used to get all records at all levels
Parameters
soFar:Array | |
getKey:Boolean (default = false) | |
unSelected:Boolean (default = false) |
| getShowableColumns | () | method |
public function getShowableColumns(lockModes:Array = null, deep:Boolean = false):Arrayll columns that can be "hidden"
Parameters
lockModes:Array (default = null) | |
deep:Boolean (default = false) |
Array |
| getSortableColumns | () | method |
public function getSortableColumns():ArrayAll visible columns where sortable=true
ReturnsArray |
| getSortIndex | () | method |
public function getSortIndex(fld:FlexDataGridColumn, return1:Boolean = true, returnSortObject:Boolean = false):ObjectGets the index at which the given column appears in the sort list.
Parameters
fld:FlexDataGridColumn | |
return1:Boolean (default = true) | |
returnSortObject:Boolean (default = false) |
Object —
|
| getStyleValue | () | method |
public function getStyleValue(styleProp:String):*If a value exists for a style property at the level return it, else return the value of the property at the grid level.
Parameters
styleProp:String |
* |
| getSumOfColumnWidths | () | method |
public function getSumOfColumnWidths(modes:Array = null):NumberGets the sum of all column widths.
Parameters
modes:Array (default = null) |
Number |
| getValue | () | method |
public function getValue(val:Object):ObjectIf value is primitive, does a tostring, if XMLList, returns the text.
Parameters
val:Object |
Object —
|
| getVisibleColumns | () | method |
public function getVisibleColumns(lockModes:Array = null):ArrayAll columns where visible=true and lock modes match the specified lock modes.
Parameters
lockModes:Array (default = null) |
Array |
| getWidestLeftLockedWidth | () | method |
public function getWidestLeftLockedWidth(widestLeftLockedWidth:Number = -1):NumberParameters
widestLeftLockedWidth:Number (default = -1) |
Number |
| getWidestRightLockedWidth | () | method |
public function getWidestRightLockedWidth(widestRightLockedWidth:Number = -1):NumberReturns the widest right locked width.
Parameters
widestRightLockedWidth:Number (default = -1) |
Number |
| getWidestWidth | () | method |
public function getWidestWidth(widestWidth:Number, deep:Boolean = true):NumberAt each level, get the sum of column widths, and return the width at the level with the widest width. Only includes locked columns by default.
Parameters
widestWidth:Number | |
deep:Boolean (default = true) |
Number |
| hasSort | () | method |
public function hasSort(fld:FlexDataGridColumn):FilterSortReturns true if the given column is already in the sort
Parameters
fld:FlexDataGridColumn |
FilterSort |
| isCellSelected | () | method |
public function isCellSelected(item:Object, col:FlexDataGridColumn):CellInfoReturns true if the CellInfo for the specified item and column exists in the selectedCells collection.
Parameters
item:Object | |
col:FlexDataGridColumn |
CellInfo |
| isItemEqual | () | method |
public function isItemEqual(itemOrKeyToCompare:Object, rowData:Object, useItemKeyForCompare:Boolean):BooleanProvided an item or a key, and a flag that indicates what it is, returns true if the item matches the respective comparison.
Parameters
itemOrKeyToCompare:Object | |
rowData:Object | |
useItemKeyForCompare:Boolean |
Boolean —
|
| isItemOpen | () | method |
public function isItemOpen(item:Object):BooleanReturns true if the getItemKey for the specified item exists in the selectedKeys collection.
Parameters
item:Object |
Boolean |
| isItemSelected | () | method |
public function isItemSelected(item:Object, useExclusion:Boolean = true):BooleanReturns true if the getItemKey for the specified item exists in the selectedKeys collection.
Parameters
item:Object | |
useExclusion:Boolean (default = true) |
Boolean |
| isItemUnSelected | () | method |
public function isItemUnSelected(item:Object):BooleanReturns true if the getItemKey for the specified item exists in the selectedKeys collection.
Parameters
item:Object |
Boolean |
| pushIntoChain | () | method |
protected function pushIntoChain(chain:Array, item:Object):void
Parameters
chain:Array | |
item:Object |
| removeAllSorts | () | method |
public function removeAllSorts():voidRemoves all the sorts and calls doInvalidate.
| removeColumn | () | method |
public function removeColumn(col:FlexDataGridColumn):voidRemoves the column from the collection of columns at this level.
Parameters
col:FlexDataGridColumn |
| selectAll | () | method |
public function selectAll(select:Boolean, dispatch:Boolean = true, provider:* = null, subset:Array = null, useKeys:Boolean = false, openItems:Boolean = false):BooleanSelects or unselects everything
Parameters
select:Boolean | |
dispatch:Boolean (default = true) | |
provider:* (default = null) | |
subset:Array (default = null) | |
useKeys:Boolean (default = false) | |
openItems:Boolean (default = false) |
Boolean |
| selectCell | () | method |
public function selectCell(cell:IFlexDataGridCell, selected:Boolean = true):voidelects or unselects a cell
Parameters
cell:IFlexDataGridCell | |
selected:Boolean (default = true) |
| selectCellByRowPositionInfo | () | method |
public function selectCellByRowPositionInfo(rowInfo:RowPositionInfo, col:FlexDataGridColumn, selected:Boolean = true):voidParameters
rowInfo:RowPositionInfo | |
col:FlexDataGridColumn | |
selected:Boolean (default = true) |
| selectRow | () | method |
public function selectRow(item:Object, selected:Boolean = true, dispatch:Boolean = true, recurse:Boolean = true, bubble:Boolean = true, parent:Object = null):voidSelects or unselects a row - please note that the level that you call this method on should correspond to the item that you are selecting, in other words, if you are selecting an item at level 2 (child of the top level records) then you should call it on the second level, i.e. grid.columnLevel.nextLevel.selctRow(...
Parameters
item:Object — Item being selected
| |
selected:Boolean (default = true) — Whether or not the item should be selected
| |
dispatch:Boolean (default = true) — Whether or not to dispatch the change event
| |
recurse:Boolean (default = true) — Whether or not to recursively select children
| |
bubble:Boolean (default = true) — Whether or not to recursively update the parent state
| |
parent:Object (default = null) — Parent of the item being selected. Needed for inner level single select support.
|
| setColumnWidthsUsingWidthMode | () | method |
public function setColumnWidthsUsingWidthMode(equally:Boolean = false):voidGoes through the unlocked columns, figures out the widest width needed by each of the columns by going through the data provider, and sets the width accordingly. If the equally parameter is set to true, all column settings are ignored, and the grid's width is distributed equally across all columns Below is a description of the logic used:
Parameters
equally:Boolean (default = false) |
| setCurrentSort | () | method |
public function setCurrentSort(fld:FlexDataGridColumn, asc:Boolean):voidClears out the current sort collection and sets it to the passed in values
Parameters
fld:FlexDataGridColumn | |
asc:Boolean |
| setOpenKeys | () | method |
public function setOpenKeys(keys:Array, provider:Object = null):voidSets the open keys at this level.
Parameters
keys:Array | |
provider:Object (default = null) |
| setSelectedItemsBasedOnSelectedField | () | method |
public function setSelectedItemsBasedOnSelectedField(items:Object, parent:Object = null, openItems:Boolean = true):BooleanIterates through items, checks to see if the selected bit is on, and if so, adds it to the open list.
Parameters
items:Object | |
parent:Object (default = null) | |
openItems:Boolean (default = true) |
Boolean |
| setSelectedKeys | () | method |
public function setSelectedKeys(objects:Array, openItems:Boolean = true):voidFor nested/grouped hierarchical datagrids, used to select records. Iterates through the data provider, matching each object, and if matches, adds the object to the selectedObjects for the level
Parameters
objects:Array | |
openItems:Boolean (default = true) |
| setSelectedKeysState | () | method |
public function setSelectedKeysState(val:String):voidSets the selected state at this level. If you specify checked, adds all rows to the selected keys collection.
Parameters
val:String |
| setSelectedObjects | () | method |
public function setSelectedObjects(objects:Array, openItems:Boolean = true):voidFor nested/grouped hierarchical datagrids, used to select records. Iterates through the data provider, matching each object, and if matches, adds the object to the selectedObjects for the level
Parameters
objects:Array | |
openItems:Boolean (default = true) |
| shiftColumns | () | method |
public function shiftColumns(columnToInsert:FlexDataGridColumn, insertBefore:FlexDataGridColumn, movingCg:Boolean = false):voidInserts the column specified column before the specified column
Parameters
columnToInsert:FlexDataGridColumn | |
insertBefore:FlexDataGridColumn | |
movingCg:Boolean (default = false) |
| showColumns | () | method |
public function showColumns(colsToShow:ArrayCollection):voidSets the visible flag on all columns except the ones specified in the list to false.
Parameters
colsToShow:ArrayCollection |
| showPrintableColumns | () | method |
public function showPrintableColumns():voidSets the visible flag on all columns except the ones where excludeFromPrint=true.
| storeChain | () | method |
protected function storeChain(item:Object):voidParameters
item:Object |
| swapColumns | () | method |
protected function swapColumns(cg:FlexDataGridColumnGroup, columnToInsert:FlexDataGridColumn, insertBefore:FlexDataGridColumn):voidParameters
cg:FlexDataGridColumnGroup | |
columnToInsert:FlexDataGridColumn | |
insertBefore:FlexDataGridColumn |
| change | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when row selection or cell selection changes.
| columnsResized | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventispatched when the columns at this level are resized
| filterPageSortChange | Event |
com.flexicious.nestedtreedatagrid.events.ExtendedFilterPageSortChangeEventDispatched when the grid's page, sort or filter state changes. Also Dispatched when an item, that was not previously opened is opened. Used in lazy loaded (filterPageSortMode=server) grids, to load a specific page of data from the backend.
| headerClicked | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when any header cell is clicked
| itemClick | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when user clicks on a row in row selection mode or cell in cell selection mode
| itemClose | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when an item opens, both in server and client mode
| itemDoubleClick | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when user double clicks on a row in row selection mode or cell in cell selection mode
| itemEditBegin | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridItemEditEventDispatched when the editor is instantiated.
| itemEditBeginning | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridItemEditEventDispatched when the user attempts to edit an item. If you call preventDefault on this event, the edit session will not begin.
| itemEditCancel | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridItemEditEventDispatched when the edit session is cancelled.
| itemEditEnd | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridItemEditEventDispatched when the edit session ends.
| itemEditValueCommit | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridItemEditEventDispatched just before committing the value of the editorDataField property of the editor to the property specified by the datafield property of the column of the item being edited. If you call preventDefault on the event, the value will not be committed.
| itemLoad | Event |
com.flexicious.nestedtreedatagrid.events.ExtendedFilterPageSortChangeEventDispatched only in server mode, when an item opens for the first time. Used to wire up an event handler to load the next level of data in lazy loaded grids.
| itemOpen | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when an item opens, both in server and client mode
| itemOpening | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when an item opens, both in server and client mode
| itemRollOut | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when user rolls out of a row in row selection mode or cell in cell selection mode
| itemRollOver | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEventDispatched when user rolls over a row in row selection mode or cell in cell selection mode