Package | com.flexicious.nestedtreedatagrid |
Class | public class FlexDataGridColumn |
Inheritance | FlexDataGridColumn mx.styles.CSSStyleDeclaration |
Implements | com.flexicious.grids.dependencies.IDataGridFilterColumn |
Subclasses | FlexDataGridCheckBoxColumn, FlexDataGridExpandCollapseColumn |
Language Version : | ActionScript 3.0 |
Property | Defined By | ||
---|---|---|---|
blankValuesLabel : String = [None]
Value for the blank item in multi select combobox filter control
Please note, there is a space in the front of this string so it shows up
right below the "All" option. | FlexDataGridColumn | ||
calculatedHeaderHeight : Number
The height on basis of the data to be displayed. | FlexDataGridColumn | ||
cellBackgroundColorFunction : Function
A function that can be used to control the background color of each cell in this column. | FlexDataGridColumn | ||
cellBorderFunction : Function
A function that lets you control the border drawing mechanism for each cell. | FlexDataGridColumn | ||
cellCustomDrawFunction : Function
A function that lets you control the background drawing mechanism for each cell. | FlexDataGridColumn | ||
cellDisabledFunction : Function
A function that can be used to control the enabled flag of each cell in this column. | FlexDataGridColumn | ||
cellTextColorFunction : Function
A function that can be used to control the Text color of each cell in this column. | FlexDataGridColumn | ||
clearFilterOnIconClick : Boolean
For filterControl=textInput, if you specify an Filter Icon Style, setting this variable to
true will clear the text on icon click. | FlexDataGridColumn | ||
clickBehavior : String [read-only]
Unused, for legacy purposes only
| FlexDataGridColumn | ||
columnGroup : FlexDataGridColumnGroup
The group, if any that this column belongs to. | FlexDataGridColumn | ||
columnLockMode : String
In addition to the left locked and unlocked columns supported by the regular Flex DataGrid, Flexicious Ultimate supports right locked columns.
The grid supports the following selection modes:
1) LOCK_MODE_LEFT
2) LOCK_MODE_RIGHT
3) LOCK_MODE_NONE
If set to left, the column will be locked to the left and not scroll horizontally.
If set to right, the column will be locked to the right, and not scroll horizontally.
Please note, column lock modes only make sense if the horizontalScrollPolicy of the grid is set
to "on" or "auto", since if there is no horizontal scrollbar, locked columns behave like unlocked columns,
because there is no horizontal scroll. | FlexDataGridColumn | ||
columnWidthMode : String
The columnWidthMode property on the column specifies how the column widths are applied. | FlexDataGridColumn | ||
columnWidthModeFitToContentExcludeHeader : Boolean
Whether or not to include the header text in the calculation of the column width. | FlexDataGridColumn | ||
columnWidthOffset : int
A value in pixels, that may be used to add/remove width
that gets calculated when you use the columnWidthMode property
Use if you have custom renderers or icons. | FlexDataGridColumn | ||
dataCellRenderer : IFactory
Container for the item renderer. | FlexDataGridColumn | ||
dataField : String
The property to display in this column. | FlexDataGridColumn | ||
draggable : Boolean
Flag that indicates whether the user is allowed to resize
the width of the column. | FlexDataGridColumn | ||
editable : Boolean
Flag that indicates whether the items in the column are editable. | FlexDataGridColumn | ||
editorDataField : String
The name of the property of the item editor that contains the new
data for the list item. | FlexDataGridColumn | ||
enableCellClickRowSelect : Boolean
Flag to enable selection of a row when a cell within that row is clicked. | FlexDataGridColumn | ||
enableDataCellOptmization : Boolean
Flag to turn on the highly optimized FlexDataGridDataCell3. | FlexDataGridColumn | ||
enableExpandCollapseIcon : Boolean = false
For hierarchical datagrids, instead of having a separate column for icons,
this flag will be used to embed an icon based on disclosureOpenIcon and disclosureClosedIcon
within this column that will control the expand collapse of the row. | FlexDataGridColumn | ||
enableFilterAutoComplete : Boolean
When filterControl=textInput, setting this flag to true will set the enableAutoComplete flag on the associated TextInput control
| FlexDataGridColumn | ||
enableHierarchicalNestIndent : Boolean
For grouped datagrids, when a single column represents entities from various nest levels, its nice
to visually indent them. | FlexDataGridColumn | ||
enableIcon : Boolean
Flag to enable/disable icons within this cell.
For columns that have icons (with or without text), you can
Set enableIcons=true.
If it will be the same icon for each cell, just set the "icon" style property on the column.
If it will be different icons based on some logic, you can either provide that via the iconField property, or specify an iconFunction.
If the cell will contain just an icon and no text, then set hideText/hideHeaderText to true.
If the header also needs an icon, use the headerIconUrl property.
Specify (iconLeft or iconRight) and (iconTop or iconBottom). | FlexDataGridColumn | ||
enableLocalStyles : Boolean = true
Added to avoid flicker
| FlexDataGridColumn | ||
enableRecursiveSearch : Boolean = false
For Grouped datagrids, searching on this column will cause match current item, as well as any of its children. | FlexDataGridColumn | ||
excludeFromExport : Boolean
If set to true, this column wont be included in the
export mechanism by default. | FlexDataGridColumn | ||
excludeFromPrint : Boolean
If set to true, this column wont be included in the
print mechanism by default. | FlexDataGridColumn | ||
excludeFromSettings : Boolean
If set to true, this column wont be included in the settings popup by default. | FlexDataGridColumn | ||
filterCellRenderer : IFactory
Container for the footer renderer. | FlexDataGridColumn | ||
filterComboBoxBuildFromGrid : Boolean
Flag, if set to true, will automatically build this
collection on basis of distinct values in the grid. | FlexDataGridColumn | ||
filterComboBoxDataField : String
Used in conjunction with the | FlexDataGridColumn | ||
filterComboBoxDataProvider : ArrayCollection
Dataprovider to use to build the list of values to dipsplay in
the filter control, only applicable if the filterControl is a
| FlexDataGridColumn | ||
filterComboBoxLabelField : String
Used in conjunction with the | FlexDataGridColumn | ||
filterComboBoxWidth : Number
Returns the width of the dropdown. | FlexDataGridColumn | ||
filterCompareFunction : Function = null
A function that takes an item, and a filterExpression, and returns true or false on basis of whether the provided
item matches the filterExpression. | FlexDataGridColumn | ||
filterComparisionType : String
This is usually automatically set, you dont have to manually set it,
unless you're sending strings as Date objects. | FlexDataGridColumn | ||
filterControl : String
A control that implements | FlexDataGridColumn | ||
filterConverterFunction : Function = null
A function that takes an item, and returns a processed value for comparison. | FlexDataGridColumn | ||
filterDateRangeOptions : Array
Applicable only when the filtercontrol is a
| FlexDataGridColumn | ||
filterOperation : String
The operator to apply when doing the conversion. | FlexDataGridColumn | ||
filterRenderer : IFactory
The actual control
to render inside the header column. | FlexDataGridColumn | ||
filterTriggerEvent : String
The event that the filter triggers on. | FlexDataGridColumn | ||
filterWaterMark : String
Applicable only if the filter control is TextInput. | FlexDataGridColumn | ||
footerAlign : String
The alignment of the footer label
| FlexDataGridColumn | ||
footerCellRenderer : IFactory
Container for the footer renderer. | FlexDataGridColumn | ||
footerFormatter : Formatter
Formatter for the footer label
| FlexDataGridColumn | ||
footerLabel : String
The label of the footer
| FlexDataGridColumn | ||
footerLabelFunction : Function
A function that will return the footer label
| FlexDataGridColumn | ||
footerLabelFunction2 : Function
Similar to footerLabelFunction, but takes the footer cell instead of the column. | FlexDataGridColumn | ||
footerOperation : String
The operation to apply to the footer
| FlexDataGridColumn | ||
footerOperationPrecision : int
Precision for the footer label
| FlexDataGridColumn | ||
footerRenderer : IFactory
A renderer for the footer
| FlexDataGridColumn | ||
footerWordWrap : Boolean
The alignment of the header label
| FlexDataGridColumn | ||
format : String
Used by the doFormat method. | FlexDataGridColumn | ||
formatter : Object
Used by the doFormat method. | FlexDataGridColumn | ||
formatterCurrencySymbol : String
For currency formatter, the currency symbol. | FlexDataGridColumn | ||
formatterDateFormatString : String
For date formatters, the date format. | FlexDataGridColumn | ||
formatterPrecision : Number = 2
For number and currency formatters, the default number of digits after the decimal point. | FlexDataGridColumn | ||
hasComplexDisplay : Boolean = false
Performance optimization, is set to true if there is a complex fieldname or a labelFunction or labelFunction2
| FlexDataGridColumn | ||
headerAlign : String
The alignment of the header label
| FlexDataGridColumn | ||
headerCellRenderer : IFactory
Container for the header renderer. | FlexDataGridColumn | ||
headerMenuActions : Array
A list of ToolbarActions to show when the user hovers their mouse over the header cell of this column. | FlexDataGridColumn | ||
headerRenderer : IFactory
The class factory for item renderer instances that display the
column header for the column. | FlexDataGridColumn | ||
headerText : String
Text for the header of this column. | FlexDataGridColumn | ||
headerToolTip : String
Tooltip to apply to the header. | FlexDataGridColumn | ||
headerWordWrap : Boolean
The alignment of the header label
| FlexDataGridColumn | ||
hideHeaderText : Boolean = false
The header text is used in the column picker, export, etc. | FlexDataGridColumn | ||
hideText : Boolean = false
In scenarios where you only want to display the icon, set enableIcon=true, and hideText=true;
| FlexDataGridColumn | ||
iconField : String
The property on the model object that returns the url to the icon,
if you wish to show different icons for each cell. | FlexDataGridColumn | ||
iconFunction : Function
If enableIcon=true, icon function for the icon. | FlexDataGridColumn | ||
iconHandCursor : Boolean = false
If enableIcon=true, enables hand cursor on the icon
| FlexDataGridColumn | ||
iconMouseOverDelay : Number = 500
The delay to wait until dispatching the iconMouseOver event when the user mouse the mouse over the icon. | FlexDataGridColumn | ||
iconToolTip : String
If enableIcon=true, tooltip for the icon
| FlexDataGridColumn | ||
iconToolTipFunction : Function
If enableIcon=true, tooltip function for the icon. | FlexDataGridColumn | ||
iconTooltipRenderer : IFactory = null
The renderer factory for the icon tooltip. | FlexDataGridColumn | ||
isEditableFunction : Function
A function that takes a IFlexDataGridCell, and returns true if this cell is editable. | FlexDataGridColumn | ||
isElastic : Boolean [read-only]
Returns true if the column is not right locked or IFixedWidth. | FlexDataGridColumn | ||
isFirstRightLocked : Boolean [read-only] | FlexDataGridColumn | ||
isFirstUnLocked : Boolean [read-only] | FlexDataGridColumn | ||
isLastleftLocked : Boolean [read-only] | FlexDataGridColumn | ||
isLastrightLocked : Boolean [read-only] | FlexDataGridColumn | ||
isLastUnLocked : Boolean [read-only] | FlexDataGridColumn | ||
isLeftLocked : Boolean [read-only]
Returns true if the column is left locked. | FlexDataGridColumn | ||
isLocked : Boolean [read-only]
Returns true if the column is left or right locked. | FlexDataGridColumn | ||
isRightLocked : Boolean [read-only]
Returns true if the column is right locked. | FlexDataGridColumn | ||
isSortable : Boolean [read-only]
MX and Spark Grids implement the sortable differently, so to match the interface. | FlexDataGridColumn | ||
itemEditor : IFactory
A class factory for the instances of the item editor to use for the
column, when it is editable. | FlexDataGridColumn | ||
itemEditorApplyOnValueCommit : Boolean
In Edit mode, we only apply the new value to the model object when the user
either hits the enter key or the tab key after typing input. | FlexDataGridColumn | ||
itemEditorManagesPersistence : Boolean
Indicates that the item editors manage their own persitence and populating the dataprovider
back with their changes, so the editorDataField is ignored and the DataGrid does not write
back the value from the editor into the data provider. | FlexDataGridColumn | ||
itemEditorValidatorFunction : Function
Function to call before committing the value of the item editor
to the data provider. | FlexDataGridColumn | ||
itemRenderer : IFactory
Each Cell in the grid is contains an instance of this class. | FlexDataGridColumn | ||
label : String [read-only]
For support in pickers
| FlexDataGridColumn | ||
labelFunction : Function
A function that determines the text to display in this column. | FlexDataGridColumn | ||
labelFunction2 : Function
A specialized function that determines the text to display in this column, and takes the actual cell being evaluated as a parameter. | FlexDataGridColumn | ||
level : FlexDataGridColumnLevel | FlexDataGridColumn | ||
linkText : String
Deprecated. | FlexDataGridColumn | ||
minWidth : Number
The mininum width that a column can receive. | FlexDataGridColumn | ||
nestDepth : Number [read-only]
Gets the nest depth of the associated level. | FlexDataGridColumn | ||
owner : DisplayObjectContainer [read-only] | FlexDataGridColumn | ||
percentWidth : Number
On creation complete, will use this to distribute
the width of the grid among the visible columns in
the specified ratio. | FlexDataGridColumn | ||
persistenceKey : String
For datagrids where there are multiple columns with the same header text,
this field may be specified so that the persistence mechanism does not
overwrite it. | FlexDataGridColumn | ||
resizable : Boolean
Flag that indicates whether the user is allowed to resize
the width of the column. | FlexDataGridColumn | ||
searchField : String
The field that the filter should search on. | FlexDataGridColumn | ||
selectable : Boolean
Flag that indicates whether the items in the column are selectable. | FlexDataGridColumn | ||
showClearIconWhenHasText : Boolean = false
For filterControl=textInput, if you specify an Filter Icon Style, setting this variable to
true will clear show the icon only when there is text in the box. | FlexDataGridColumn | ||
showIconOnCellHover : Boolean = false
If set to true, icon only shows when user hovers over the cell. | FlexDataGridColumn | ||
showIconOnRowHover : Boolean = false
If set to true, icon only shows when user hovers over the row. | FlexDataGridColumn | ||
sortable : Boolean = true
Flag that indicates whether the user can click on the
header of this column to sort the data provider. | FlexDataGridColumn | ||
sortCaseInsensitive : Boolean = false
To sort this column insensitive of case. | FlexDataGridColumn | ||
sortCompareFunction : Function
A callback function that gets called when sorting the data in
the column. | FlexDataGridColumn | ||
sortField : String
Similar to searchField, if you want to override what the database
actually sorts when you sort this column
| FlexDataGridColumn | ||
sortFieldName : String [read-only] | FlexDataGridColumn | ||
sortNumeric : Boolean = false
To sort this column numerically. | FlexDataGridColumn | ||
styleOverrides : Object [read-only]
For 3.5 Compatibility
| FlexDataGridColumn | ||
truncateToFit : Boolean
If this propery is true, the text that does not fit in the available size
is truncated with "...". | FlexDataGridColumn | ||
uniqueIdentifier : String
A key used to uniquely identify a column. | FlexDataGridColumn | ||
useCurrentDataProviderForFilterComboBoxValues : Boolean
Not supported
| FlexDataGridColumn | ||
useFilterDataProviderForItemEditor : Boolean
For list based item editors, setting this flag will use the dataprovider from the
filter mechanism for the item editor. | FlexDataGridColumn | ||
useHandCursor : Boolean | FlexDataGridColumn | ||
useIconRollOverTimer : Boolean = true
Prior to dispatching the icon roll over, we use a timer so accidental roll over does not cause popups. | FlexDataGridColumn | ||
useLabelFunctionForFilterCompare : Boolean
Flag, that defaults to true, indicates that in client filter mode,
use the label function to perform the search comparison as opposed to using the
raw value of the "searchField" property of the column. | FlexDataGridColumn | ||
useLabelFunctionForSortCompare : Boolean
When you set to true, a custom sortCompareFunction is applied that uses the labelFunction instead
of the dataField. | FlexDataGridColumn | ||
useUnderLine : Boolean
When true, if the renderer supports the text decoration style property, sets it to underline. | FlexDataGridColumn | ||
visible : Boolean
Flag that indicates whether the column is visible. | FlexDataGridColumn | ||
width : Number
The width of the column, in pixels. | FlexDataGridColumn | ||
wordWrap : Boolean
Flag to indicate that the text in this column can flow into multiple lines, based
upon the width of the column. | FlexDataGridColumn | ||
x : Number
Current X position of this column relative to the container for its cells. | FlexDataGridColumn |
Method | Defined By | ||
---|---|---|---|
FlexDataGridColumn | |||
deriveRenderer(chromeType:int = 5):IFactory
Depending on the specified chrome type, gets the appropriate renderer. | FlexDataGridColumn | ||
dispatchEvent(event:Event):Boolean [override]
Whenever a tree datagrid event is dispatched at any column,
we also dispatch it from the level so if someone wants
to listen for an event at all columns... | FlexDataGridColumn | ||
doFormat(retVal:String):String
The doFormat method returns formatted value on basis of the format properties (See description below)
If the input is null, returns null. | FlexDataGridColumn | ||
getAdjacentColumn(num:int):FlexDataGridColumn | FlexDataGridColumn | ||
getDistinctValues(dp:Object, collection:Array = null, addedCodes:Array = null, lvl:FlexDataGridColumnLevel = null):Array
Returns this list of distinct values for this column,
in a list of arraycollection which will have properties
data and label. | FlexDataGridColumn | ||
getStyleValue(styleProp:String):*
Gets the style value for the provided style property at the current
level. | FlexDataGridColumn | ||
isValidStyleValue(val:*):Boolean | FlexDataGridColumn | ||
itemToLabel(data:Object, cell:IFlexDataGridCell = null):String
Returns the String that the item renderer displays for the given data object. | FlexDataGridColumn | ||
showPopup(popupData:Object):Object
Unused, for legacy purposes only
| FlexDataGridColumn |
Method | Defined By | ||
---|---|---|---|
defaultIconFunction(cell:IFlexDataGridCell, state:String):*
Default Icon tooltip function. | FlexDataGridColumn | ||
defaultIconTooltipFunction(cell:IFlexDataGridCell):String
Default Icon tooltip function. | FlexDataGridColumn | ||
nestedSortCompareFunction(obj1:Object, obj2:Object):int
function that is used when we have complex properties in the datafield. | FlexDataGridColumn |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the column width changes for any reason, including programmatic recalculation of column widths | FlexDataGridColumn | |||
Dispatched when the column x changes for any reason, including programmatic recalculation of column x | FlexDataGridColumn |
Constant | Defined By | ||
---|---|---|---|
COLUMN_WIDTH_MODE_FIT_TO_CONTENT : String = fitToContent [static] | FlexDataGridColumn | ||
COLUMN_WIDTH_MODE_FIXED : String = fixed [static] | FlexDataGridColumn | ||
COLUMN_WIDTH_MODE_NONE : String = none [static] | FlexDataGridColumn | ||
COLUMN_WIDTH_MODE_PERCENT : String = percent [static] | FlexDataGridColumn | ||
DEFAULT_COLUMN_WIDTH : Number = 100 [static]
Default width of the columns
| FlexDataGridColumn | ||
FORMAT_CURRENCY : String = currency [static]
Used by the doFormat method. | FlexDataGridColumn | ||
FORMAT_DATE : String = date [static]
Used by the doFormat method. | FlexDataGridColumn | ||
FORMAT_DATE_TIME : String = datetime [static]
Used by the doFormat method. | FlexDataGridColumn | ||
FORMAT_NONE : String = none [static]
Used by the doFormat method. | FlexDataGridColumn | ||
FORMAT_NUMBER : String = number [static]
Used by the doFormat method. | FlexDataGridColumn | ||
FORMAT_TIME : String = time [static]
Used by the doFormat method. | FlexDataGridColumn |
blankValuesLabel | property |
public var blankValuesLabel:String = [None]
Value for the blank item in multi select combobox filter control Please note, there is a space in the front of this string so it shows up right below the "All" option.
calculatedHeaderHeight | property |
calculatedHeaderHeight:Number
The height on basis of the data to be displayed. If there is a header renderer, or if there is headerWordWrap we calulate this, otherwise, it is set to what ever the levels.rowHeight is.
public function get calculatedHeaderHeight():Number
public function set calculatedHeaderHeight(value:Number):void
cellBackgroundColorFunction | property |
cellBackgroundColorFunction:Function
A function that can be used to control the background color of each cell in this column. If this function is null or returns null, the cell 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 cellBackgroundColorFunction():Function
public function set cellBackgroundColorFunction(value:Function):void
cellBorderFunction | property |
cellBorderFunction:Function
A 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 (if XXXXVerticalGridLines=true) and bottom (if XXXXhorizontalGridLines=true) 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
cellCustomDrawFunction | property |
cellCustomDrawFunction:Function
A 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 cellCustomDrawFunction():Function
public function set cellCustomDrawFunction(value:Function):void
cellDisabledFunction | property |
cellDisabledFunction:Function
A function that can be used to control the enabled flag of each cell in this column. 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 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 true or false.
public function get cellDisabledFunction():Function
public function set cellDisabledFunction(value:Function):void
cellTextColorFunction | property |
cellTextColorFunction:Function
A function that can be used to control the Text color of each cell in this column. 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 class. This function should return a single color hex code (uint).
public function get cellTextColorFunction():Function
public function set cellTextColorFunction(value:Function):void
clearFilterOnIconClick | property |
clearFilterOnIconClick:Boolean
For filterControl=textInput, if you specify an Filter Icon Style, setting this variable to true will clear the text on icon click. Used for a "clear" icon.
public function get clearFilterOnIconClick():Boolean
public function set clearFilterOnIconClick(value:Boolean):void
clickBehavior | property |
clickBehavior:String
[read-only] Unused, for legacy purposes only
public function get clickBehavior():String
columnGroup | property |
columnGroup:FlexDataGridColumnGroup
The group, if any that this column belongs to.
public function get columnGroup():FlexDataGridColumnGroup
public function set columnGroup(value:FlexDataGridColumnGroup):void
columnLockMode | property |
columnLockMode:String
In addition to the left locked and unlocked columns supported by the regular Flex DataGrid, Flexicious Ultimate supports right locked columns. The grid supports the following selection modes: 1) LOCK_MODE_LEFT 2) LOCK_MODE_RIGHT 3) LOCK_MODE_NONE If set to left, the column will be locked to the left and not scroll horizontally. If set to right, the column will be locked to the right, and not scroll horizontally. Please note, column lock modes only make sense if the horizontalScrollPolicy of the grid is set to "on" or "auto", since if there is no horizontal scrollbar, locked columns behave like unlocked columns, because there is no horizontal scroll. This horizontal scroll policy of the grid defaults to "off", and changing this to "on" or "auto" affects the calculations that we perform in deciding the optimal column widths, in that columns are no longer "squished" or "expanded" to fit the visible width of the grid. The left and right locked section for grids with flat data are wide enough to accommodate the left and right locked columns respectively. For nested grids, both left and right locked sections are wide enough to accommodate the widest left and right locked columns at each level, and for the leftLocked section, we add the width of the disclosure cells which is set via the nestIndent property for each level (it gets multiplied by the nestDepth for a tree look). There are a few restrictions with left and right locked columns. They cannot be re-ordered. Resizing them results in resizing the section that they are in. Finally, resizing them is very slightly slower than resizing the unlocked columns, because we have to redraw the grid on basis of updated section widths.
public function get columnLockMode():String
public function set columnLockMode(value:String):void
columnWidthMode | property |
columnWidthMode:String
The columnWidthMode property on the column specifies how the column widths are applied. This property defaults to "none". Flexicious Ultimate provides a rich mechanism to control column widths. Column widths are a complicated topic because there are a number of scenarios and rules that we need to account for
The default value is auto
.
public function get columnWidthMode():String
public function set columnWidthMode(value:String):void
columnWidthModeFitToContentExcludeHeader | property |
columnWidthModeFitToContentExcludeHeader:Boolean
Whether or not to include the header text in the calculation of the column width.
The default value is false
.
public function get columnWidthModeFitToContentExcludeHeader():Boolean
public function set columnWidthModeFitToContentExcludeHeader(value:Boolean):void
columnWidthOffset | property |
columnWidthOffset:int
A value in pixels, that may be used to add/remove width that gets calculated when you use the columnWidthMode property Use if you have custom renderers or icons.
public function get columnWidthOffset():int
public function set columnWidthOffset(value:int):void
dataCellRenderer | property |
dataCellRenderer:IFactory
Container for the item renderer. Needs to implement IFlexDataGridDataCell. Defaults to FlexDataGridDataCell
public function get dataCellRenderer():IFactory
public function set dataCellRenderer(value:IFactory):void
dataField | property |
dataField:String
The property to display in this column. If you specify a complex property ,the grid takes over the sortCompareFunction, and the sortField property is ignored.
public function get dataField():String
public function set dataField(value:String):void
draggable | property |
draggable:Boolean
Flag that indicates whether the user is allowed to resize the width of the column. Please note, left and right locked columns are not resizable
The default value is true
.
public function get draggable():Boolean
public function set draggable(value:Boolean):void
editable | property |
editable:Boolean
Flag that indicates whether the items in the column are editable.
public function get editable():Boolean
public function set editable(value:Boolean):void
editorDataField | property |
editorDataField:String
The name of the property of the item editor that contains the new data for the list item.
public function get editorDataField():String
public function set editorDataField(value:String):void
enableCellClickRowSelect | property |
enableCellClickRowSelect:Boolean
Flag to enable selection of a row when a cell within that row is clicked. You may choose to set this to false when you set selectable =true. When the user clicks on a cell, the row is automatically selected when the selection mode is either single row or multiple rows. When you have cells that are selectable, the user may wish to select the text in the cell as opposed to selecting the row. Setting this flag to false will disable the row selection when any cell within this column is clicked.
The default value is true
.
public function get enableCellClickRowSelect():Boolean
public function set enableCellClickRowSelect(value:Boolean):void
enableDataCellOptmization | property |
enableDataCellOptmization:Boolean
Flag to turn on the highly optimized FlexDataGridDataCell3. FlexDataGridDataCell3 is a light weight class introduced in Flexicious 2.7, that renders 30% faster than its predecessor, FlexDataGridDataCell2. Since it is very lightweight, it only supports the basics of text rendering, like fontFamily, fontSize, fontWeight, fontStyle ,color, background, textAlign, and textDecoration. In most cases, this covers the range of things that a typical application developer needs. But incase you need advanced text capabilities, like TLF fonts, RTL, etc, you may need to turn off this flag either on the grid, or on specific columns that you need advanced features on. Once FDG3 is fully settled in the field, this flag will be removed and we will retire FDGC2. As of right now, the FDGC3 cannot handle wordwrap, doubleclick, truncateToFit, handCursor. The grid automatically swaps out the FDG3 with FDG when you set any of these flags. If you notice any inconsistency when you enable this flag, you can turn this same flag off for the column that you notice the inconsistency on, and the grid will fall back to the older mechanism to display that column. Please send a message to support
public function get enableDataCellOptmization():Boolean
public function set enableDataCellOptmization(value:Boolean):void
enableExpandCollapseIcon | property |
public var enableExpandCollapseIcon:Boolean = false
For hierarchical datagrids, instead of having a separate column for icons, this flag will be used to embed an icon based on disclosureOpenIcon and disclosureClosedIcon within this column that will control the expand collapse of the row.
enableFilterAutoComplete | property |
enableFilterAutoComplete:Boolean
When filterControl=textInput, setting this flag to true will set the enableAutoComplete flag on the associated TextInput control
public function get enableFilterAutoComplete():Boolean
public function set enableFilterAutoComplete(value:Boolean):void
enableHierarchicalNestIndent | property |
enableHierarchicalNestIndent:Boolean
For grouped datagrids, when a single column represents entities from various nest levels, its nice to visually indent them. Set this parameter to true for such columns If you wish to programatically control the padding, you could do so via the rendererInitialized event on the grid.
The default value is true
.
public function get enableHierarchicalNestIndent():Boolean
public function set enableHierarchicalNestIndent(value:Boolean):void
enableIcon | property |
enableIcon:Boolean
Flag to enable/disable icons within this cell. For columns that have icons (with or without text), you can
public function get enableIcon():Boolean
public function set enableIcon(value:Boolean):void
enableLocalStyles | property |
public var enableLocalStyles:Boolean = true
Added to avoid flicker
enableRecursiveSearch | property |
public var enableRecursiveSearch:Boolean = false
For Grouped datagrids, searching on this column will cause match current item, as well as any of its children. If any children match, this item matches as well.
excludeFromExport | property |
excludeFromExport:Boolean
If set to true, this column wont be included in the export mechanism by default.
public function get excludeFromExport():Boolean
public function set excludeFromExport(value:Boolean):void
excludeFromPrint | property |
excludeFromPrint:Boolean
If set to true, this column wont be included in the print mechanism by default.
public function get excludeFromPrint():Boolean
public function set excludeFromPrint(value:Boolean):void
excludeFromSettings | property |
excludeFromSettings:Boolean
If set to true, this column wont be included in the settings popup by default.
public function get excludeFromSettings():Boolean
public function set excludeFromSettings(value:Boolean):void
filterCellRenderer | property |
filterCellRenderer:IFactory
Container for the footer renderer. Needs to inherit from FlexDataGridFooterCell. Defaults to FlexDataGridFooterCell
public function get filterCellRenderer():IFactory
public function set filterCellRenderer(value:IFactory):void
filterComboBoxBuildFromGrid | property |
filterComboBoxBuildFromGrid:Boolean
Flag, if set to true, will automatically build this collection on basis of distinct values in the grid.
public function get filterComboBoxBuildFromGrid():Boolean
public function set filterComboBoxBuildFromGrid(value:Boolean):void
filterComboBoxDataField | property |
filterComboBoxDataField:String
Used in conjunction with the
public function get filterComboBoxDataField():String
public function set filterComboBoxDataField(value:String):void
filterComboBoxDataProvider | property |
filterComboBoxDataProvider:ArrayCollection
Dataprovider to use to build the list of values to dipsplay in the filter control, only applicable if the filterControl is a
public function get filterComboBoxDataProvider():ArrayCollection
public function set filterComboBoxDataProvider(value:ArrayCollection):void
See also
filterComboBoxLabelField | property |
filterComboBoxLabelField:String
Used in conjunction with the
public function get filterComboBoxLabelField():String
public function set filterComboBoxLabelField(value:String):void
filterComboBoxWidth | property |
filterComboBoxWidth:Number
Returns the width of the dropdown. Applicable only when the filter controls are comboboxes
public function get filterComboBoxWidth():Number
public function set filterComboBoxWidth(value:Number):void
filterCompareFunction | property |
public var filterCompareFunction:Function = null
A function that takes an item, and a filterExpression, and returns true or false on basis of whether the provided item matches the filterExpression. Please note, the filterExpression has a pointer to the iFilterControl that it was created from.
filterComparisionType | property |
filterComparisionType:String
This is usually automatically set, you dont have to manually set it, unless you're sending strings as Date objects. When set, will attempt to first convert the current value to the type you specified and then do the conversion. Values : auto,string,number,boolean,date
The default value is auto
.
public function get filterComparisionType():String
public function set filterComparisionType(value:String):void
filterControl | property |
filterControl:String
A control that implements
public function get filterControl():String
public function set filterControl(value:String):void
See also
filterConverterFunction | property |
public var filterConverterFunction:Function = null
A function that takes an item, and returns a processed value for comparison. For example, if your backend sends down strings that represents a date, wire this function up and return a date object for comparison purposes.
filterDateRangeOptions | property |
filterDateRangeOptions:Array
Applicable only when the filtercontrol is a
public function get filterDateRangeOptions():Array
public function set filterDateRangeOptions(value:Array):void
See also
filterOperation | property |
filterOperation:String
The operator to apply when doing the conversion. See FILTER_OPERATION_TYPE constant values from com.flexicious.grids.filters.FilterExpression
public function get filterOperation():String
public function set filterOperation(value:String):void
filterRenderer | property |
filterRenderer:IFactory
The actual control to render inside the header column. This control must implement the com.flexicious.controls.interfaces.filters.IFilterControl interface.
This property can be used as the source for data binding.
public function get filterRenderer():IFactory
public function set filterRenderer(value:IFactory):void
filterTriggerEvent | property |
filterTriggerEvent:String
The event that the filter triggers on. Defaults to "change", or if the filterRenderer supports com.flexicious.controls.interfaces.IDelayedChange, then the delayedChange event.
public function get filterTriggerEvent():String
public function set filterTriggerEvent(value:String):void
See also
filterWaterMark | property |
filterWaterMark:String
Applicable only if the filter control is TextInput. If set, sets the watermark of the TextInput filter to the value specified.
public function get filterWaterMark():String
public function set filterWaterMark(value:String):void
footerAlign | property |
footerAlign:String
The alignment of the footer label
public function get footerAlign():String
public function set footerAlign(value:String):void
footerCellRenderer | property |
footerCellRenderer:IFactory
Container for the footer renderer. Needs to inherit from FlexDataGridFooterCell. Defaults to FlexDataGridFooterCell
public function get footerCellRenderer():IFactory
public function set footerCellRenderer(value:IFactory):void
footerFormatter | property |
footerFormatter:Formatter
Formatter for the footer label
public function get footerFormatter():Formatter
public function set footerFormatter(value:Formatter):void
footerLabel | property |
footerLabel:String
The label of the footer
public function get footerLabel():String
public function set footerLabel(value:String):void
footerLabelFunction | property |
footerLabelFunction:Function
A function that will return the footer label
public function get footerLabelFunction():Function
public function set footerLabelFunction(value:Function):void
footerLabelFunction2 | property |
footerLabelFunction2:Function
Similar to footerLabelFunction, but takes the footer cell instead of the column. The footer label function is present for backwards compatibility
public function get footerLabelFunction2():Function
public function set footerLabelFunction2(value:Function):void
footerOperation | property |
footerOperation:String
The operation to apply to the footer
public function get footerOperation():String
public function set footerOperation(value:String):void
footerOperationPrecision | property |
footerOperationPrecision:int
Precision for the footer label
public function get footerOperationPrecision():int
public function set footerOperationPrecision(value:int):void
footerRenderer | property |
footerRenderer:IFactory
A renderer for the footer
public function get footerRenderer():IFactory
public function set footerRenderer(value:IFactory):void
footerWordWrap | property |
footerWordWrap:Boolean
The alignment of the header label
public function get footerWordWrap():Boolean
public function set footerWordWrap(value:Boolean):void
format | property |
format:String
Used by the doFormat method.
public function get format():String
public function set format(value:String):void
formatter | property |
public var formatter:Object
Used by the doFormat method. Formatter to use when format not equals none. On basis of format, a new formatter is initialized. If you wish to override the format of the default formatter, you can provide your own formatter here.
formatterCurrencySymbol | property |
public var formatterCurrencySymbol:String
For currency formatter, the currency symbol. Defaults to blank value.
formatterDateFormatString | property |
public var formatterDateFormatString:String
For date formatters, the date format. Defaults to blank value. Initialized on basis of date format. If you wish to override the default format, you can use this string.
formatterPrecision | property |
public var formatterPrecision:Number = 2
For number and currency formatters, the default number of digits after the decimal point. Defaults to 2
hasComplexDisplay | property |
public var hasComplexDisplay:Boolean = false
Performance optimization, is set to true if there is a complex fieldname or a labelFunction or labelFunction2
headerAlign | property |
headerAlign:String
The alignment of the header label
public function get headerAlign():String
public function set headerAlign(value:String):void
headerCellRenderer | property |
headerCellRenderer:IFactory
Container for the header renderer. Needs to inherit from FlexDataGridHeaderCell. Defaults to FlexDataGridHeaderCell
public function get headerCellRenderer():IFactory
public function set headerCellRenderer(value:IFactory):void
headerMenuActions | property |
public var headerMenuActions:Array
A list of ToolbarActions to show when the user hovers their mouse over the header cell of this column. Defaults to ColumnHeaderOperationBehavior.DEFAULT_COLUMN_HEADER_OPERATIONS.
headerRenderer | property |
headerRenderer:IFactory
The class factory for item renderer instances that display the column header for the column.
public function get headerRenderer():IFactory
public function set headerRenderer(value:IFactory):void
headerText | property |
headerText:String
Text for the header of this column. By default, the DataGrid
control uses the value of the dataField
property
as the header text.
public function get headerText():String
public function set headerText(value:String):void
headerToolTip | property |
headerToolTip:String
Tooltip to apply to the header. Setting this at runtime has no effect, need to set it before init. If you set it after, call rebuild.
public function get headerToolTip():String
public function set headerToolTip(value:String):void
headerWordWrap | property |
headerWordWrap:Boolean
The alignment of the header label
public function get headerWordWrap():Boolean
public function set headerWordWrap(value:Boolean):void
hideHeaderText | property |
public var hideHeaderText:Boolean = false
The header text is used in the column picker, export, etc. However, if you do not wish for it to be displayed in the view, set this to true. Used for IconColumns.
hideText | property |
public var hideText:Boolean = false
In scenarios where you only want to display the icon, set enableIcon=true, and hideText=true;
iconField | property |
iconField:String
The property on the model object that returns the url to the icon, if you wish to show different icons for each cell. Defaults to data field. If there are scenarios where you wish to show both the icon as well as the text, you can specify the iconField and the dataField. Otherwise, where you show just the icon, you can leave the iconField blank and have the data field specify the value of the icon url.
public function get iconField():String
public function set iconField(value:String):void
iconFunction | property |
public var iconFunction:Function
If enableIcon=true, icon function for the icon. Default implementation has the following logic: 1) If this is a header cell, returns the value of the headerIcon style property 2) Else if this is a data cell, and the value of either the icon,overIcon or disabledIcon style property on basis of the passed in state is available, returns it. 3) Else if this is a data cell, and the iconField is not empty, returns the value of the iconField for the row data Should take an IFlexDataGridCell object.
iconHandCursor | property |
public var iconHandCursor:Boolean = false
If enableIcon=true, enables hand cursor on the icon
iconMouseOverDelay | property |
public var iconMouseOverDelay:Number = 500
The delay to wait until dispatching the iconMouseOver event when the user mouse the mouse over the icon. Defaults to 500
iconToolTip | property |
public var iconToolTip:String
If enableIcon=true, tooltip for the icon
iconToolTipFunction | property |
public var iconToolTipFunction:Function
If enableIcon=true, tooltip function for the icon. Default implementation returns the value of the iconToolTip. Should take an IFlexDataGridCell object.
iconTooltipRenderer | property |
public var iconTooltipRenderer:IFactory = null
The renderer factory for the icon tooltip. Defaults to null. If null, we simply show a string tooltip, else we call the showtooltip function on the grid passing in an instance of the class factory specified here.
isEditableFunction | property |
isEditableFunction:Function
A function that takes a IFlexDataGridCell, and returns true if this cell is editable. Use this in scenarios where some cells out of a column are not editable.
public function get isEditableFunction():Function
public function set isEditableFunction(value:Function):void
isElastic | property |
isElastic:Boolean
[read-only] Returns true if the column is not right locked or IFixedWidth.
public function get isElastic():Boolean
isFirstRightLocked | property |
isFirstRightLocked:Boolean
[read-only] public function get isFirstRightLocked():Boolean
isFirstUnLocked | property |
isFirstUnLocked:Boolean
[read-only] public function get isFirstUnLocked():Boolean
isLastleftLocked | property |
isLastleftLocked:Boolean
[read-only] public function get isLastleftLocked():Boolean
isLastrightLocked | property |
isLastrightLocked:Boolean
[read-only] public function get isLastrightLocked():Boolean
isLastUnLocked | property |
isLastUnLocked:Boolean
[read-only] public function get isLastUnLocked():Boolean
isLeftLocked | property |
isLeftLocked:Boolean
[read-only] Returns true if the column is left locked.
public function get isLeftLocked():Boolean
isLocked | property |
isLocked:Boolean
[read-only] Returns true if the column is left or right locked.
public function get isLocked():Boolean
isRightLocked | property |
isRightLocked:Boolean
[read-only] Returns true if the column is right locked.
public function get isRightLocked():Boolean
isSortable | property |
isSortable:Boolean
[read-only] MX and Spark Grids implement the sortable differently, so to match the interface.
public function get isSortable():Boolean
itemEditor | property |
itemEditor:IFactory
A class factory for the instances of the item editor to use for the column, when it is editable.
The default value is new ClassFactory(mx.controls.TextInput)
.
public function get itemEditor():IFactory
public function set itemEditor(value:IFactory):void
itemEditorApplyOnValueCommit | property |
itemEditorApplyOnValueCommit:Boolean
In Edit mode, we only apply the new value to the model object when the user either hits the enter key or the tab key after typing input. This works fine for most cases, but for ItemEditors like date fields or Select Boxes, you may wish to apply the value on Change. In this case, set this flag to true.
public function get itemEditorApplyOnValueCommit():Boolean
public function set itemEditorApplyOnValueCommit(value:Boolean):void
itemEditorManagesPersistence | property |
itemEditorManagesPersistence:Boolean
Indicates that the item editors manage their own persitence and populating the dataprovider back with their changes, so the editorDataField is ignored and the DataGrid does not write back the value from the editor into the data provider. When you set itemEditorManagesPersistence, the itemEditorValidatorFunction or itemEditorApplyValueOnCommit are ignored, since we completely handover the responsibility of validating and persisting the data from the editor back into the dataprovider to the editor
public function get itemEditorManagesPersistence():Boolean
public function set itemEditorManagesPersistence(value:Boolean):void
itemEditorValidatorFunction | property |
itemEditorValidatorFunction:Function
Function to call before committing the value of the item editor to the data provider. Should take a UIComponent with is the item editor, and return a true or a false. If false, value is not committed If true, value is committed.
public function get itemEditorValidatorFunction():Function
public function set itemEditorValidatorFunction(value:Function):void
itemRenderer | property |
itemRenderer:IFactory
Each Cell in the grid is contains an instance of this class.
public function get itemRenderer():IFactory
public function set itemRenderer(value:IFactory):void
label | property |
label:String
[read-only] For support in pickers
public function get label():String
labelFunction | property |
labelFunction:Function
A function that determines the text to display in this column.
public function get labelFunction():Function
public function set labelFunction(value:Function):void
labelFunction2 | property |
labelFunction2:Function
A specialized function that determines the text to display in this column, and takes the actual cell being evaluated as a parameter. As opposed to the regular label function, this actually takes a FlexDataGridCell object as a parameter, which contains the level information if you need to perform additonal logic. Please note, the cell parameter will be null in certain cases, like from the quickFind() method, where the cell is not currently drawn. Example: labelFunction="myLabelFunc" private function myLabelFunc(item:Object,col:FlexDataGridColumn, cell:FlexDataGridCell=null):String{ }
public function get labelFunction2():Function
public function set labelFunction2(value:Function):void
level | property |
level:FlexDataGridColumnLevel
public function get level():FlexDataGridColumnLevel
public function set level(value:FlexDataGridColumnLevel):void
linkText | property |
linkText:String
Deprecated. Use cell text instead.
public function get linkText():String
public function set linkText(value:String):void
minWidth | property |
minWidth:Number
The mininum width that a column can receive. After all calculations are made, it could result in some columns being squished beyond a certain value, where they're hardly visible. Setting a value for this property ensure this does not happen.
public function get minWidth():Number
public function set minWidth(value:Number):void
nestDepth | property |
nestDepth:Number
[read-only] Gets the nest depth of the associated level.
public function get nestDepth():Number
owner | property |
owner:DisplayObjectContainer
[read-only] Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 1.1 |
public function get owner():DisplayObjectContainer
percentWidth | property |
percentWidth:Number
On creation complete, will use this to distribute the width of the grid among the visible columns in the specified ratio.
public function get percentWidth():Number
public function set percentWidth(value:Number):void
persistenceKey | property |
persistenceKey:String
For datagrids where there are multiple columns with the same header text, this field may be specified so that the persistence mechanism does not overwrite it.
public function get persistenceKey():String
public function set persistenceKey(value:String):void
resizable | property |
resizable:Boolean
Flag that indicates whether the user is allowed to resize the width of the column. Please note, left and right locked columns are not resizable
The default value is true
.
public function get resizable():Boolean
public function set resizable(value:Boolean):void
searchField | property |
searchField:String
The field that the filter should search on. Defaults to the dataField property from mx.controls.dataGridClasses.DataGridColumn. But can be overridden if needed. For example, consider a grid bound to a list of Employee objects, with a departmentName and departmentId property. This column shows the departmentName, with a combobox filter or a multi-select filter using a list of departments as filterComboBoxDataProvider By default, the comparison will occur using the selected label of the filter control being compared to the departmentName property of each employee. This is allright if the filterPageSortMode property of the com.flexicious.grids.ExtendedDataGrid is set to "client", but if it is "server" , you would ideally want to have the ID of the selected department(s). In that case, you would set the searchField property to "departmentId", filterComboBoxDataField to "departmentId", filterComboBoxLabelField to "departmentName".
public function get searchField():String
public function set searchField(value:String):void
selectable | property |
selectable:Boolean
Flag that indicates whether the items in the column are selectable.
public function get selectable():Boolean
public function set selectable(value:Boolean):void
showClearIconWhenHasText | property |
public var showClearIconWhenHasText:Boolean = false
For filterControl=textInput, if you specify an Filter Icon Style, setting this variable to true will clear show the icon only when there is text in the box.
showIconOnCellHover | property |
public var showIconOnCellHover:Boolean = false
If set to true, icon only shows when user hovers over the cell.
showIconOnRowHover | property |
public var showIconOnRowHover:Boolean = false
If set to true, icon only shows when user hovers over the row.
sortable | property |
public var sortable:Boolean = true
Flag that indicates whether the user can click on the header of this column to sort the data provider.
The default value is true
.
sortCaseInsensitive | property |
public var sortCaseInsensitive:Boolean = false
To sort this column insensitive of case. Only set this to true for string data, if you set this to true for numeric or date data, the sort results will be incorrect.
sortCompareFunction | property |
sortCompareFunction:Function
A callback function that gets called when sorting the data in the column.
public function get sortCompareFunction():Function
public function set sortCompareFunction(value:Function):void
sortField | property |
sortField:String
Similar to searchField, if you want to override what the database actually sorts when you sort this column
public function get sortField():String
public function set sortField(value:String):void
sortFieldName | property |
sortFieldName:String
[read-only] public function get sortFieldName():String
sortNumeric | property |
public var sortNumeric:Boolean = false
To sort this column numerically.
styleOverrides | property |
styleOverrides:Object
[read-only] For 3.5 Compatibility
public function get styleOverrides():Object
truncateToFit | property |
truncateToFit:Boolean
If this propery is true, the text that does not fit in the available size is truncated with "...".
public function get truncateToFit():Boolean
public function set truncateToFit(value:Boolean):void
uniqueIdentifier | property |
uniqueIdentifier:String
A key used to uniquely identify a column. Defaults to the header text Used in print and preference persistence to identify columns.
public function get uniqueIdentifier():String
public function set uniqueIdentifier(value:String):void
useCurrentDataProviderForFilterComboBoxValues | property |
useCurrentDataProviderForFilterComboBoxValues:Boolean
Not supported
public function get useCurrentDataProviderForFilterComboBoxValues():Boolean
public function set useCurrentDataProviderForFilterComboBoxValues(value:Boolean):void
useFilterDataProviderForItemEditor | property |
useFilterDataProviderForItemEditor:Boolean
For list based item editors, setting this flag will use the dataprovider from the filter mechanism for the item editor.
public function get useFilterDataProviderForItemEditor():Boolean
public function set useFilterDataProviderForItemEditor(value:Boolean):void
useHandCursor | property |
useHandCursor:Boolean
public function get useHandCursor():Boolean
public function set useHandCursor(value:Boolean):void
useIconRollOverTimer | property |
public var useIconRollOverTimer:Boolean = true
Prior to dispatching the icon roll over, we use a timer so accidental roll over does not cause popups. But sometimes you need this behavior, for example for custom cursors overicons. set this to false in that case
useLabelFunctionForFilterCompare | property |
useLabelFunctionForFilterCompare:Boolean
Flag, that defaults to true, indicates that in client filter mode, use the label function to perform the search comparison as opposed to using the raw value of the "searchField" property of the column.
public function get useLabelFunctionForFilterCompare():Boolean
public function set useLabelFunctionForFilterCompare(value:Boolean):void
useLabelFunctionForSortCompare | property |
useLabelFunctionForSortCompare:Boolean
When you set to true, a custom sortCompareFunction is applied that uses the labelFunction instead of the dataField.
public function get useLabelFunctionForSortCompare():Boolean
public function set useLabelFunctionForSortCompare(value:Boolean):void
useUnderLine | property |
useUnderLine:Boolean
When true, if the renderer supports the text decoration style property, sets it to underline.
public function get useUnderLine():Boolean
public function set useUnderLine(value:Boolean):void
visible | property |
visible:Boolean
Flag that indicates whether the column is visible.
If true
, the column is visible.
The default value is true
.
public function get visible():Boolean
public function set visible(value:Boolean):void
width | property |
width:Number
The width of the column, in pixels.
The default value is 100
.
public function get width():Number
public function set width(value:Number):void
wordWrap | property |
wordWrap:Boolean
Flag to indicate that the text in this column can flow into multiple lines, based upon the width of the column. This flag is usually set in combination with the variableRowHeight flag on the grid. Below are the docs for the variableRowHeight tag:
public function get wordWrap():Boolean
public function set wordWrap(value:Boolean):void
x | property |
x:Number
Current X position of this column relative to the container for its cells.
public function get x():Number
public function set x(value:Number):void
FlexDataGridColumn | () | Constructor |
public function FlexDataGridColumn()
defaultIconFunction | () | method |
protected function defaultIconFunction(cell:IFlexDataGridCell, state:String):*
Default Icon tooltip function. Returns value of the iconToolTip string.
Parameters
cell:IFlexDataGridCell | |
state:String |
* |
defaultIconTooltipFunction | () | method |
protected function defaultIconTooltipFunction(cell:IFlexDataGridCell):String
Default Icon tooltip function. Returns value of the iconToolTip string.
Parameters
cell:IFlexDataGridCell |
String |
deriveRenderer | () | method |
public function deriveRenderer(chromeType:int = 5):IFactory
Depending on the specified chrome type, gets the appropriate renderer. If truncateToFit or selectable is true, returns a label factory else returns a text field factory.
Parameters
chromeType:int (default = 5 )
|
IFactory |
dispatchEvent | () | method |
override public function dispatchEvent(event:Event):Boolean
Whenever a tree datagrid event is dispatched at any column, we also dispatch it from the level so if someone wants to listen for an event at all columns...
Parameters
event:Event |
Boolean |
doFormat | () | method |
public function doFormat(retVal:String):String
The doFormat method returns formatted value on basis of the format properties (See description below) If the input is null, returns null. If there is a formatter specified, uses the formatter's format method to return a formatted value. If the format property is specified and no formatter is specified, the column will instantiate a formatter on basis of the value of the format property. The property can be one of 5 constants.
Parameters
retVal:String — String to format
|
String — Formatted string.
|
getAdjacentColumn | () | method |
public function getAdjacentColumn(num:int):FlexDataGridColumn
Parameters
num:int |
FlexDataGridColumn |
getDistinctValues | () | method |
public function getDistinctValues(dp:Object, collection:Array = null, addedCodes:Array = null, lvl:FlexDataGridColumnLevel = null):Array
Returns this list of distinct values for this column, in a list of arraycollection which will have properties data and label.
Parameters
dp:Object | |
collection:Array (default = null )
| |
addedCodes:Array (default = null )
| |
lvl:FlexDataGridColumnLevel (default = null )
|
Array |
getStyleValue | () | method |
public function getStyleValue(styleProp:String):*
Gets the style value for the provided style property at the current level. If not defined at current level, gets the one defined at the grid level.
Parameters
styleProp:String |
* |
isValidStyleValue | () | method |
public function isValidStyleValue(val:*):Boolean
Parameters
val:* |
Boolean |
itemToLabel | () | method |
public function itemToLabel(data:Object, cell:IFlexDataGridCell = null):String
Returns the String that the item renderer displays for the given data object.
Parameters
data:Object | |
cell:IFlexDataGridCell (default = null )
|
String |
nestedSortCompareFunction | () | method |
protected function nestedSortCompareFunction(obj1:Object, obj2:Object):int
function that is used when we have complex properties in the datafield.
Parameters
obj1:Object | |
obj2:Object |
int |
showPopup | () | method |
public function showPopup(popupData:Object):Object
Unused, for legacy purposes only
Parameters
popupData:Object |
Object |
columnResized | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEvent
Dispatched when the column width changes for any reason, including programmatic recalculation of column widths
columnXChanged | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEvent
Dispatched when the column x changes for any reason, including programmatic recalculation of column x
COLUMN_WIDTH_MODE_FIT_TO_CONTENT | Constant |
public static const COLUMN_WIDTH_MODE_FIT_TO_CONTENT:String = fitToContent
COLUMN_WIDTH_MODE_FIXED | Constant |
public static const COLUMN_WIDTH_MODE_FIXED:String = fixed
COLUMN_WIDTH_MODE_NONE | Constant |
public static const COLUMN_WIDTH_MODE_NONE:String = none
COLUMN_WIDTH_MODE_PERCENT | Constant |
public static const COLUMN_WIDTH_MODE_PERCENT:String = percent
DEFAULT_COLUMN_WIDTH | Constant |
public static const DEFAULT_COLUMN_WIDTH:Number = 100
Default width of the columns
FORMAT_CURRENCY | Constant |
public static const FORMAT_CURRENCY:String = currency
Used by the doFormat method.
FORMAT_DATE | Constant |
public static const FORMAT_DATE:String = date
Used by the doFormat method.
FORMAT_DATE_TIME | Constant |
public static const FORMAT_DATE_TIME:String = datetime
Used by the doFormat method.
FORMAT_NONE | Constant |
public static const FORMAT_NONE:String = none
Used by the doFormat method.
FORMAT_NUMBER | Constant |
public static const FORMAT_NUMBER:String = number
Used by the doFormat method.
FORMAT_TIME | Constant |
public static const FORMAT_TIME:String = time
Used by the doFormat method.