import FlexDataGridColumnLevel from 'flexicious-react-datagrid/js/flexgrid/grids/FlexDataGridColumnLevel.js'
FlexDataGridColumnLevel
Extends:
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 sub grid as well as a level renderer. Bottom line - use nextLevelRenderer only at the innermost level. Our examples demonstrate this.
Constructor Summary
Public Constructor | ||
public |
constructor(grid: *) |
Member Summary
Public Members | ||
public |
[prp]: * |
|
public |
[Style(name="activeCellColor", type="uint", format="Color", inherit="yes")] The color of the cell directly under the mouse or if using keyboard navigation, current keyboard seed. |
|
public |
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. |
|
public |
[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The colors to use for the backgrounds of the items in the grid. |
|
public |
[Style(name="alternatingTextColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The colors to use for the text of the items in the grid. |
|
public |
[Style(name="backgroundColor", type="Array", arrayType="uint", format="Color", inherit="no")] Background color, the color of the fill area. |
|
public |
A function that lets you control the border drawing mechanism for each cell. |
|
public |
A property on the object that identifies if the object has children. |
|
public |
The property of the parent level object, that identifies the children that should be displayed on the next level. |
|
public |
color: uint [Style(name="color", type="uint", format="Color", inherit="yes")] Color of text in the component, including the component label. |
|
public |
[Style(name="columnGroupClosedIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to a closed column group. |
|
public |
[Style(name="columnGroupColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the Column Groups background gradient. |
|
public |
[Style(name="columnGroupDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border |
|
public |
[Style(name="columnGroupHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="columnGroupHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the header horizontal grid lines. |
|
public |
[Style(name="columnGroupHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="columnGroupOpenIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to an open column group. |
|
public |
[Style(name="columnGroupRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the Column Groups. |
|
public |
[Style(name="columnGroupStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column groups. |
|
public |
[Style(name="columnGroupVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="columnGroupVerticalGridLineThickness", type="Number", format="Length")] Thickness of the header vertical grid lines. |
|
public |
Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
Childs groups, if any. |
|
public |
The number of records to inspect to identify the max size of the data in the column when columnWidthMode=fitToContent. |
|
public |
A List of FilterSort objects, for multi column sort support. |
|
public |
Not Yet Implemented. |
|
public |
disabledColor: uint [Style(name="disabledColor", type="uint", format="Color", inherit="yes")] Color of text in the component if it is disabled. |
|
public |
A property on the object that identifies whether the object is disabled. |
|
public |
[Style(name="disclosureClosedIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to a closed branch node of the navigation tree. |
|
public |
[Style(name="disclosureOpenIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to an open branch node of the navigation tree. |
|
public |
A comma separated list of the following strings: filter,header,body,footer,pager. |
|
public |
[Style(name="editItemColor", type="Array", arrayType="uint", format="Color")] The colors to use for the backgrounds of the items in the grid in the editable mode. |
|
public |
[Style(name="editTextColor", format="Color")] The colors to use for the text of the items in the editable grid. |
|
public |
Flag to indicate whether or not to enable paging functionality |
|
public |
Not Yet Implemented. |
|
public |
For inner level grids that have their own headers, when the header row scrolls out of view, there is no easy way to determine columns for each row. |
|
public |
If set to true, this column wont be included in the quick find mechanism by default. |
|
public |
Container for the expand collapse cell. |
|
public |
Container for the expand collapse cell. |
|
public |
filterColors: * [Style(name="filterColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background for the filter. |
|
public |
[Style(name="filterDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn |
|
public |
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. |
|
public |
[Style(name="filterHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="filterHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the filter horizontal grid lines. |
|
public |
[Style(name="filterHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="filterPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="filterPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="filterPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="filterPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
The Filter/Page/Sort Mode. |
|
public |
[Style(name="filterRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the filter. |
|
public |
[Style(name="filterVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="filterVerticalGridLineThickness", type="Number", format="Length")] Thickness of the filter vertical grid lines. |
|
public |
[Style(name="filterVerticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
If you have enableFilters set to true but want the filter row to not appear, you can set this value. |
|
public |
footerColors: * [Style(name="footerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the footer background gradient. |
|
public |
[Style(name="footerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn |
|
public |
[Style(name="footerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="footerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the footer horizontal grid lines. |
|
public |
[Style(name="footerHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="footerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="footerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="footerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="footerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="footerRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the footer. |
|
public |
[Style(name="footerStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column headers. |
|
public |
[Style(name="footerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="footerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the footer vertical grid lines. |
|
public |
[Style(name="footerVerticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
If you have enableFooters set to true but want the footer row to not appear, you can set this value. |
|
public |
Use this flag to show the pager control even if the enablePaging is set to false. |
|
public |
The owner grid. |
|
public |
Flag to set if column groups exist |
|
public |
headerColors: * [Style(name="headerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the header background gradient. |
|
public |
[Style(name="headerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border |
|
public |
[Style(name="headerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="headerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the header horizontal grid lines. |
|
public |
[Style(name="headerHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="headerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="headerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="headerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="headerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="headerRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the header. |
|
public |
Width to show the resize indicator between columns. |
|
public |
[Style(name="headerStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column headers. |
|
public |
[Style(name="headerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="headerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the header vertical grid lines. |
|
public |
[Style(name="headerVerticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
Whether or not to show the header row |
|
public |
[Style(name="horizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="horizontalGridLineThickness", type="Number", format="Length", inherit="yes")] Thickness of the horizontal grid lines. |
|
public |
[Style(name="horizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
If true, initial sort direction for this level is ascending. |
|
public |
The property of the object on this level that should be used in the default sort. |
|
public |
The Item Load Mode. |
|
public |
|
|
public |
Height to assign to the renderer for each level. |
|
public |
minimu header height Not Yet Implemented. |
|
public |
[Style(name="multiColumnSortNumberHeight", type="Number", inherit="no")] The height of the numeric value representing the order of the column sort. |
|
public |
[Style(name="multiColumnSortNumberStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the numeric value representing the order of the column sort. |
|
public |
[Style(name="multiColumnSortNumberWidth", type="Number", inherit="no")] The width of the numeric value representing the order of the column sort. |
|
public |
The indentation to apply to each progressive nest level. |
|
public |
Container for the nest indent padding cell. |
|
public |
nestIndentPaddingRenderer: flexiciousNmsp.ClassFactory The inner content of the padding cell. |
|
public |
nextLevel: flexiciousNmsp.FlexDataGridColumnLevel Declaration of the next level of columns |
|
public |
nextLevelRenderer: flexiciousNmsp.ClassFactory A renderer that displays this level. |
|
public |
openItems: *[] |
|
public |
[Style(name="paddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
paddingLeft: * [Style(name="paddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
paddingRight: * [Style(name="paddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
paddingTop: * [Style(name="paddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
The number of records to display per page |
|
public |
Container for the footer renderer. |
|
public |
pagerColors: * [Style(name="pagerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the pager background gradient. |
|
public |
[Style(name="pagerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn |
|
public |
[Style(name="pagerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="pagerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the pager horizontal grid lines. |
|
public |
[Style(name="pagerHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="pagerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="pagerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="pagerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="pagerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
@deprecated. |
|
public |
[Style(name="pagerRollOverColors",type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the pager. |
|
public |
[Style(name="pagerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="pagerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the pager vertical grid lines. |
|
public |
[Style(name="pagerVerticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
If you have enablePaging set to true but want the pager row to not appear, you can set this value. |
|
public |
A property that points to the parent object Used in conjunction with enableSelectionBubble property on the grid. |
|
public |
[Style(name="rendererColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the renderer background gradient. |
|
public |
[Style(name="rendererDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn |
|
public |
[Style(name="rendererHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines. |
|
public |
[Style(name="rendererHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the renderer horizontal grid lines. |
|
public |
[Style(name="rendererHorizontalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show horizontal grid lines between the rows. |
|
public |
[Style(name="rendererPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="rendererPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
[Style(name="rendererPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area. |
|
public |
[Style(name="rendererPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area. |
|
public |
|
|
public |
[Style(name="rendererVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="rendererVerticalGridLineThickness", type="Number", format="Length")] Thickness of the renderer vertical grid lines. |
|
public |
[Style(name="rendererVerticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
|
public |
Setting this flag to true will resuse the columns from the previous level. |
|
public |
[Style(name="rollOverColor", type="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the row. |
|
public |
A function that can be used to control the enabled flag of each cell in this level. |
|
public |
A function that can be used to control whether clicking on any cell in this level will select it. |
|
public |
this member was deprecated. Use the grid.cellTextColorFunction
A function that can be used to control the text color of each cell in this level. |
|
public |
scrollbarPadRenderer: flexiciousNmsp.ClassFactory The inner content of the scroll bar pad cell. |
|
public |
A property on the object that identifies whether the object is selectable. |
|
public |
A field on the dataprovider that indicates that this item should be selected |
|
public |
A property on the object that identifies the object uniquely. |
|
public |
[Style(name="selectionColor", type="uint", format="Color", inherit="yes")] The color of the background for the row when the user selects an item renderer in the row. |
|
public |
[Style(name="selectionDisabledColor", type="uint", format="Color", inherit="yes")] The color of the background of a renderer when the component is disabled. |
|
public |
[Style(name="sortArrowSkin", type="Class", inherit="no")] The class to use as the skin for the arrow that indicates the column sort direction. |
|
public |
The alpha to apply to sticky header row. |
|
public |
[Style(name="textAlign", type="String", enumeration="left,center,right", inherit="yes")] Alignment of text within a container. |
|
public |
[Style(name="textDecoration", type="String", enumeration="none,underline", inherit="yes")] Determines whether the text is underlined. |
|
public |
[Style(name="textDisabledColor", type="uint", format="Color", inherit="yes")] The color of the text of a renderer when the component is disabled. |
|
public |
[Style(name="textRollOverColor", type="uint", format="Color", inherit="yes")] Color of the text when the user rolls over a row. |
|
public |
[Style(name="textSelectedColor", type="uint", format="Color", inherit="yes")] Color of the text when the user selects a row. |
|
public |
[Style(name="verticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines. |
|
public |
[Style(name="verticalGridLineThickness", type="Number", format="Length", inherit="yes")] Thickness of the vertical grid lines. |
|
public |
[Style(name="verticalGridLines", type="Boolean", inherit="no")] Flag that indicates whether to show vertical grid lines between the columns. |
Method Summary
Public Methods | ||
public |
addColumn(col: flexiciousNmsp.FlexDataGridColumn) Adds the column to the collection of columns at this level. |
|
public |
addSelectedItem(item: Object) |
|
public |
addSort(sort: *) For multi column sort support. |
|
public |
addUnSelectedItem(item: object) |
|
public |
adjustColumnWidths(widestWidth: number, equally: boolean) Once we have the widest width, since we don't 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. |
|
public |
applyColumnWidthFromContent(col: *, provider: *) 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 |
|
public |
areAllSelected(items: Object, checkLength: Boolean): Boolean For header checkbox state, returns if all items in the grid are selected. |
|
public |
areAnySelected(itemsToCheck: object, recursive: boolean): boolean Returns true if there is at least 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. |
|
public |
areItemsEqual(itemA: object, itemB: object): boolean |
|
public |
bubbleSelection(item: Object) |
|
public |
|
|
public |
|
|
public |
For columns with headerWordWrap, calculates the height required to display text in full. |
|
public |
cascadeProperty(prp: *, value: *) Applies the passed in value to the provided property and cascades that value down to the next level, if one exists. |
|
public |
checkRowDisabled(cell: *, item: *): * Checks disabled flag. |
|
public |
checkRowSelectable(cell: *, obj: *): * IF rowSelectableFunction is specified, returns result of that. |
|
public |
clearColumns(rebuild: boolean) Clears out all the columns of the grid If the parameter to rebuild is true, the grid will be rebuilt. |
|
public |
clearFilter(recursive: boolean) Removes the filter at this level, and all of this child levels, if specified. |
|
public |
clearSelection(dispatch: *) Clears the selected rows and cells. |
|
public |
clone(transferCols: *): * 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. |
|
public |
cloneColumn(col: *): * |
|
public |
|
|
public |
|
|
public |
createFilter(parentObject: object, inFilter: flexiciousNmsp.Filter): flexiciousNmsp.Filter Returns the filter for this level |
|
public |
createSortArrow(d: *): * |
|
public |
dispatchEvent(event: *): * 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... |
|
public |
Modifies the columns so the width is distributed equally. |
|
public |
|
|
public |
existsInCursor(item: Object): * |
|
public |
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. |
|
public |
A function that lets you control the background drawing mechanism for each cell. |
|
public |
getCheckBoxStateBasedOnExclusion(item: object, useBubble: boolean, checkDisabled: boolean): * |
|
public |
If the dataprovider is IHierarchicalCollectionView, calls the getChildren method on the incoming object. |
|
public |
Calls getChildren, and if result is XML or XMLList, returns length() else returns length; |
|
public |
getClassNames(): string[] |
|
public |
getColumnByDataField(fld: String, by: String): flexiciousNmsp.FlexDataGridColumn Returns the column with the specified datafield |
|
public |
getColumnByUniqueIdentifier(fld: String): flexiciousNmsp.FlexDataGridColumnLevel Returns the column with the specified UniqueIdentifier |
|
public |
Returns the column groups specified at the level cgLevel. |
|
public |
getColumnOwnerLevel(): flexiciousNmsp.FlexDataGridColumnLevel Gets the level that is the ultimate column owner. |
|
public |
getColumns(): Array FlexDataGrid.columns |
|
public |
getColumnsByLockMode(types: Array): Array List of visible columns of the specified lock modes. |
|
public |
getColumnsByWidthMode(modes: Array): Array |
|
public |
Gets nestindent recursively |
|
public |
Flag that indicates whether or not to show the filter |
|
public |
Flag that indicates whether or not to show the footer |
|
public |
Returns true if the nest depth is 1 and grid as the enableMultiColumnSort field enabled. |
|
public |
getExportableColumns(lockModes: *, deep: *, options: *): Array All visible columns where excludeFromExport=false |
|
public |
getFilterArguments(): ArrayCollection Gets the list of filter arguments at this level. |
|
public |
Same as filterRowHeight, except no built in logic to handle enableFilters and filterVisible. |
|
public |
Height of the filter for this level. |
|
public |
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and itemRenderer not null |
|
public |
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and headerRenderer is not null |
|
public |
Height of the footer for this level. |
|
public |
Grouped columns - only supported at the top level. |
|
public |
|
|
public |
Height of the header for this level. |
|
public |
Returns true if filterPageSortMode==client. |
|
public |
Returns true if itemLoadMode==client. |
|
public |
getItemFromKey(itemKey: *, flat: object): object Provided an item key, loops through the data provider, and finds the item with the provided key. |
|
public |
getItemKey(item: object, saveLevel: boolean): 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. |
|
public |
getItemsInSelectionHierarchy(parent: object, recurse: boolean, inNestDepth: Number, returnValue: Array, clear: boolean, getUnSelected: boolean): Array |
|
public |
Gets all left locked columns |
|
public |
Gets the sum of left lock column widths |
|
public |
getLevelRendererHeight(val: *): boolean |
|
public |
Get the maximum depth of column groups. |
|
public |
getMaxColumnGroupDepthOrHeight(soFar: *, children: *, what: *): * Get the maximum depth or height of column groups. |
|
public |
Gets the max disclosure cell width. |
|
public |
Gets the width of the padding cell. |
|
public |
getNestDepth(): * How deep in the nesting hierarchy is this item. |
|
public |
|
|
public |
getNumChildren(item: object): number |
|
public |
getOpenKeys(keys: Array, provider: object) A list of ID values, based on the selectedKeyField property. |
|
public |
Same as pagerRowHeight, except no built in logic to handle enableFilters and filterVisible. |
|
public |
getPagerRenderer(): * A Class that implements com.flexicious.controls.interfaces.IPager. |
|
public |
The height of the pager row. |
|
public |
getParentLevel(): flexiciousNmsp.FlexDataGridColumnLevel The parent level for this level. |
|
public |
getPrintableColumns(lockModes: Array, deep: boolean): Array All visible columns where excludeFromPrint=false |
|
public |
Gets all right locked columns |
|
public |
|
|
public |
Height of the row for this level. |
|
public |
getRowHeightFromType(chromeLevel: *): * Gets the height of the header, footer, pager if visible. |
|
public |
A list of |
|
public |
Returns the first item from the selectedObjects collection, if one exists at this level. |
|
public |
A list of ID values, based on the selectedKeyField property. |
|
public |
getSelectedKeysState(allItems: object): String If all items are selected, returns TriStateCheckBox.STATE_CHECKED. |
|
public |
This array is a list of all items that are have been selected by the user or programmatically, at this level. |
|
public |
getSelectedObjectsDeep(soFar: Array, getKey: boolean, unSelected: boolean) For nested datagrids, used to get all records at all levels |
|
public |
getShowableColumns(lockModes: Array, deep: Boolean): Array All columns that can be "hidden" |
|
public |
getSortIndex(fld: *, return1: *, returnSortObject: *): * Gets the index at which the given column appears in the sort list. |
|
public |
All visible columns where sortable=true |
|
public |
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. |
|
public |
getSumOfColumnWidths(modes: *): * Gets the sum of all column widths. |
|
public |
getTraceCols(): str |
|
public |
Gets all unlocked columns |
|
public |
Gets the sum of left lock column widths |
|
public |
When grid.enableSelectionExclusion is set to true, a list of items that the user explicitly unselected is stored here. |
|
public |
getValue(val: *): * If value is primitive, does a to string, if XMLList, returns the text. |
|
public |
getVisibleColumns(lockModes: *): * All columns where visible=true and lock modes match the specified lock modes. |
|
public |
getWidestLeftLockedWidth(widestLeftLockedWidth: number): number |
|
public |
getWidestRightLockedWidth(widestRightLockedWidth: number): number Returns the widest right locked width. |
|
public |
getWidestWidth(widestWidth: number, deep: boolean): number At each level, get the sum of column widths, and return the width at the level with the widest width. |
|
public |
hasSort(fld: *): * Returns true if the given column is already in the sort |
|
public |
initializeLevel(grid: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
isCellSelected(item: object, col: flexiciousNmsp.FlexDataGridColumn): flexiciousNmsp.FlexDataGridCell Returns true if the CellInfo for the specified item and column exists in the selectedCells collection. |
|
public |
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. |
|
public |
isItemSelected(item: object, useExclusion: boolean): boolean Returns true if the getItemKey for the specified item exists in the selectedKeys collection. |
|
public |
isItemUnSelected(item: number): boolean Returns true if the getItemKey for the specified item exists in the selectedKeys collection. |
|
public |
kill() |
|
public |
|
|
public |
pushIntoChain(chain: Array, item: Object) |
|
public |
Removes all the sorts and calls doInvalidate. |
|
public |
removeColumn(col: flexiciousNmsp.FlexDataGridColumn) Removes the column from the collection of columns at this level. |
|
public |
removeSelectedItem(item: object) |
|
public |
removeUnSelectedItem(item: object) |
|
public |
selectAll(select: boolean, dispatch: boolean, provider: *, subset: Array, useKeys: boolean, openItems: boolean): * |
|
public |
selectCell(cell: flexiciousNmsp.FlexDataGridColumn, selected: boolean) Selects or un selects a cell |
|
public |
selectRow(item: object, selected: boolean, dispatch: boolean, recurse: boolean, bubble: boolean, parent: object) Selects or un selects a row |
|
public |
selectRowExclusion(item: object, selected: boolean) |
|
public |
|
|
public |
|
|
public |
setColumnWidthsUsingWidthMode(equally: boolean) 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. |
|
public |
setColumns(value: Array) |
|
public |
setCurrentSort(fld: *, asc: *) Clears out the current sort collection and sets it to the passed in values |
|
public |
setDepth(nestLevel: *) |
|
public |
setEnableFilters(value: *) Sets whether or not to show the filter |
|
public |
setEnableFooters(value: boolean) Sets whether or not to show the footer |
|
public |
setEnablePaging(val: *) |
|
public |
setFilterHeight(value: *) |
|
public |
setFilterRowHeight(val: number) |
|
public |
setFooterRowHeight(val: number) |
|
public |
setGrid(grid: *) |
|
public |
setGroupedColumns(value: Array) Grouped columns - only supported at the top level. |
|
public |
|
|
public |
setOpenKeys(keys: Array, provider: object) Sets the open keys at this level. |
|
public |
setPagerHeight(value: number) |
|
public |
setPagerRenderer(value: *) A Class that implements com.flexicious.controls.interfaces.IPager. |
|
public |
setPagerRowHeight(val: number) |
|
public |
|
|
public |
setRowHeight(o: *): boolean |
|
public |
setSelectedItemsBasedOnSelectedField(items: Array, parent: object, openItems: Array): boolean Iterates through items, checks to see if the selected bit is on, and if so, adds it to the open list. |
|
public |
setSelectedKeys(objects: Array, openItems: boolean) For nested/grouped hierarchical datagrids, used to select records. |
|
public |
setSelectedKeysState(val: *) Sets the selected state at this level. |
|
public |
setSelectedObjects(objects: Array, openItems: boolean) For nested/grouped hierarchical datagrids, used to select records. |
|
public |
shiftColumns(columnToInsert: flexiciousNmsp.FlexDataGridColumn, insertBefore: flexiciousNmsp.FlexDataGridColumn, movingCg: boolean) Inserts the column specified column before the specified column |
|
public |
showColumns(colsToShow: Array) Sets the visible flag on all columns except the ones specified in the list to false. |
|
public |
Sets the visible flag on all columns except the ones where excludeFromPrint=true. |
|
public |
storeChain(item: Object) |
|
public |
swapColumns(cg: flexiciousNmsp.FlexDataGridColumnGroup, columnToInsert: flexiciousNmsp.FlexDataGridColumn, insertBefore: flexiciousNmsp.FlexDataGridColumn) |
|
public |
transferProps(from: *, to: *, checkForChanges: *) |
Inherited Summary
From class EventDispatcher | ||
public |
[prop]: * |
|
public |
|
|
public |
A list of event listeners for this event dispatcher object. |
|
public |
typeCache: {} |
|
public |
addEventListener(context: *, type: *, listener: *) Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. |
|
public |
|
|
public |
dispatchEvent(event: *): boolean Dispatches an event into the event flow. |
|
public |
getClassNames(): string[] |
|
public |
getStyle(prop: *): * Gets the value of the prop property on this object |
|
public |
hasEventListener(type: *): Boolean Returns true if an event listener exists |
|
public |
implementsOrExtends(name: *): Boolean Returns true if the class name to check is in the list of class names defined for this class. |
|
public |
kill() Removes all event listeners |
|
public |
killArray(arr: *) Given an array of event dispatchers, calls the kill method on each of them. |
|
public |
removeEventListener(type: *, listener: *) Removes a listener from the EventDispatcher object. |
|
public |
setStyle(prop: *, val: *) Sets the value of the prop property on this object |
Public Constructors
public constructor(grid: *) source
Override:
EventDispatcher#constructorParams:
Name | Type | Attribute | Description |
grid | * |
Public Members
public [prp]: * source
public activeCellColor: * source
[Style(name="activeCellColor", type="uint", format="Color", inherit="yes")] The color of the cell directly under the mouse or if using keyboard navigation, current keyboard seed.
Properties:
Name | Type | Attribute | Description |
activeCellColor | * |
public additionalFilterArgumentsFunction: Function source
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. The function must take a column level as the only parameter, and return an array collection of the filter expressions.
Properties:
Name | Type | Attribute | Description |
additionalFilterArgumentsFunction | * |
public alternatingItemColors: * source
[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The colors to use for the backgrounds of the items in the grid. The value is an array of two or more colors. The backgrounds of the list items alternate among the colors in the array.
Properties:
Name | Type | Attribute | Description |
alternatingItemColors | * |
public alternatingTextColors: * source
[Style(name="alternatingTextColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The colors to use for the text of the items in the grid. The value is an array of two colors. The text color of the list items alternate among the colors in the array.
Properties:
Name | Type | Attribute | Description |
alternatingTextColors | * |
public backgroundColor: Array source
[Style(name="backgroundColor", type="Array", arrayType="uint", format="Color", inherit="no")] Background color, the color of the fill area.
Properties:
Name | Type | Attribute | Description |
backgroundColor | * |
public cellBorderFunction: Function source
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 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.
Properties:
Name | Type | Attribute | Description |
cellBorderFunction | * |
public childrenCountField: String source
A 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.
Properties:
Name | Type | Attribute | Description |
childrenCountField | * |
public childrenField: String source
The 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
Properties:
Name | Type | Attribute | Description |
childrenField | * |
public color: uint source
[Style(name="color", type="uint", format="Color", inherit="yes")] Color of text in the component, including the component label.
The default value for the Halo theme is 0x0B333C
.
The default value for the Spark theme is 0x000000
.
Properties:
Name | Type | Attribute | Description |
color | * |
public columnGroupClosedIcon: * source
[Style(name="columnGroupClosedIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to a closed column group.
The default value is TreeDisclosureClosed
in the assets.swf file.
Properties:
Name | Type | Attribute | Description |
columnGroupClosedIcon | * |
public columnGroupColors: * source
[Style(name="columnGroupColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the Column Groups background gradient. The first color is the top color. The second color is the bottom color.
Properties:
Name | Type | Attribute | Description |
columnGroupColors | * |
public columnGroupDrawTopBorder: * source
[Style(name="columnGroupDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border
Properties:
Name | Type | Attribute | Description |
columnGroupDrawTopBorder | * |
public columnGroupHorizontalGridLineColor: * source
[Style(name="columnGroupHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupHorizontalGridLineColor | * |
public columnGroupHorizontalGridLineThickness: * source
[Style(name="columnGroupHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the header horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupHorizontalGridLineThickness | * |
public columnGroupHorizontalGridLines: * source
[Style(name="columnGroupHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupHorizontalGridLines | * |
public columnGroupOpenIcon: * source
[Style(name="columnGroupOpenIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to an open column group.
The default value is TreeDisclosureOpen
in the assets.swf file.
Properties:
Name | Type | Attribute | Description |
columnGroupOpenIcon | * |
public columnGroupRollOverColors: * source
[Style(name="columnGroupRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the Column Groups.
The default value is [0xE6E6E6,0xFFFFFF]
Properties:
Name | Type | Attribute | Description |
columnGroupRollOverColors | * |
public columnGroupStyleName: String source
[Style(name="columnGroupStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column groups.
Properties:
Name | Type | Attribute | Description |
columnGroupStyleName | * |
public columnGroupVerticalGridLineColor: * source
[Style(name="columnGroupVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupVerticalGridLineColor | * |
public columnGroupVerticalGridLineThickness: * source
[Style(name="columnGroupVerticalGridLineThickness", type="Number", format="Length")] Thickness of the header vertical grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupVerticalGridLineThickness | * |
public columnGroupVerticalGridLines: * source
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
columnGroupVerticalGridLines | * | [Style(name="columnGroupVerticalGridLines", type="Boolean", inherit="no")] |
public columnGroups: Array source
Childs groups, if any. FlexDataGridColumnGroup
Properties:
Name | Type | Attribute | Description |
columnGroups | * |
public columnWidthModeFitToContentSampleSize: Number source
The 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.
Properties:
Name | Type | Attribute | Description |
columnWidthModeFitToContentSampleSize | * |
public currentSorts: Array source
A List of FilterSort objects, for multi column sort support.
Properties:
Name | Type | Attribute | Description |
currentSorts | * |
public defaultSelectionField: string source
Not Yet Implemented. Support for use case where inner level is single select. For use where inner level is single select and we need to cascade selection from the parent. When parent is chosen, one child needs to be the default selection. This field should point to a property on the model object that returns a true false determining which field to choose by default.
Properties:
Name | Type | Attribute | Description |
defaultSelectionField | * |
public disabledColor: uint source
[Style(name="disabledColor", type="uint", format="Color", inherit="yes")] Color of text in the component if it is disabled.
Properties:
Name | Type | Attribute | Description |
disabledColor | * |
public disabledField: String source
A property on the object that identifies whether the object is disabled.
Properties:
Name | Type | Attribute | Description |
disabledField | * |
public disclosureClosedIcon: * source
[Style(name="disclosureClosedIcon", type="Class", format="EmbeddedFile", inherit="no")] The icon that is displayed next to a closed branch node of the navigation tree.
Properties:
Name | Type | Attribute | Description |
disclosureClosedIcon | * | The default value is |
public disclosureOpenIcon: * source
[Style(name="disclosureOpenIcon", type="Class", format="EmbeddedFile", inherit="no")]
The icon that is displayed next to an open branch node of the navigation tree.
The default value is TreeDisclosureOpen
in the assets.swf file.
Properties:
Name | Type | Attribute | Description |
disclosureOpenIcon | * |
public displayOrder: String source
A 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
Properties:
Name | Type | Attribute | Description |
displayOrder | * |
public editItemColor: * source
[Style(name="editItemColor", type="Array", arrayType="uint", format="Color")] The colors to use for the backgrounds of the items in the grid in the editable mode. The value is an array two colors.
Properties:
Name | Type | Attribute | Description |
editItemColor | * |
public editTextColor: * source
[Style(name="editTextColor", format="Color")] The colors to use for the text of the items in the editable grid.
Properties:
Name | Type | Attribute | Description |
editItemColor | * |
public enablePaging: Boolean source
Flag to indicate whether or not to enable paging functionality
Properties:
Name | Type | Attribute | Description |
enablePaging | * |
public enableSingleSelect: boolean source
Not Yet Implemented. Support for use case where inner level is single select. Sets this levels selection mode to be single select.
Properties:
Name | Type | Attribute | Description |
enableSingleSelect | * |
public enableStickyHeaders: boolean source
For inner level grids that have their own headers, when the header row scrolls out of view, there is no easy way to determine columns for each row. This flag will make the header row "sticky". For the 3.2 release, this is a beta feature.
Properties:
Name | Type | Attribute | Description |
enableStickyHeaders | * |
public excludeFromQuickFind: boolean source
If set to true, this column wont be included in the quick find mechanism by default.
Properties:
Name | Type | Attribute | Description |
excludeFromQuickFind | * |
public expandCollapseCellRenderer: * source
Container for the expand collapse cell. Needs to inherit from FlexDataGridExpandCollapseCell. Defaults to FlexDataGridExpandCollapseCell
Properties:
Name | Type | Attribute | Description |
expandCollapseCellRenderer | * |
public expandCollapseHeaderCellRenderer: * source
Container for the expand collapse cell. Needs to inherit from FlexDataGridExpandCollapseHeaderCell. Defaults to FlexDataGridExpandCollapseHeaderCell
Properties:
Name | Type | Attribute | Description |
expandCollapseHeaderCellRenderer | * |
public filterColors: * source
[Style(name="filterColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background for the filter. The default value is [0xCFCFCF,0xCFCFCF]
Properties:
Name | Type | Attribute | Description |
filterColors | * |
public filterDrawTopBorder: * source
[Style(name="filterDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn
Properties:
Name | Type | Attribute | Description |
filterDrawTopBorder | * |
public filterFunction: Function source
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. Works just like ListCollectionView.filterFunction
Properties:
Name | Type | Attribute | Description |
filterFunction | * |
public filterHorizontalGridLineColor: * source
[Style(name="filterHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
filterHorizontalGridLineColor | * |
public filterHorizontalGridLineThickness: * source
[Style(name="filterHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the filter horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
filterHorizontalGridLineThickness | * |
public filterHorizontalGridLines: * source
[Style(name="filterHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
filterHorizontalGridLines | * |
public filterPaddingBottom: * source
[Style(name="filterPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
filterPaddingBottom | * |
public filterPaddingLeft: * source
[Style(name="filterPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
filterPaddingLeft | * |
public filterPaddingRight: * source
[Style(name="filterPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
filterPaddingRight | * |
public filterPaddingTop: * source
[Style(name="filterPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
filterPaddingTop | * |
public filterPageSortMode: String source
The 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.
Properties:
Name | Type | Attribute | Description |
filterPageSortMode | * |
public filterRollOverColors: * source
[Style(name="filterRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the filter. The default value is [0xCFCFCF,0xCFCFCF]
Properties:
Name | Type | Attribute | Description |
filterRollOverColors | * |
public filterVerticalGridLineColor: * source
[Style(name="filterVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
filterVerticalGridLineColor | * |
public filterVerticalGridLineThickness: * source
[Style(name="filterVerticalGridLineThickness", type="Number", format="Length")] Thickness of the filter vertical grid lines.
Properties:
Name | Type | Attribute | Description |
filterVerticalGridLineThickness | * |
public filterVerticalGridLines: * source
[Style(name="filterVerticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
filterVerticalGridLines | * |
public filterVisible: Boolean source
If you have enableFilters set to true but want the filter row to not appear, you can set this value.
Properties:
Name | Type | Attribute | Description |
filterVisible | * |
public footerColors: * source
[Style(name="footerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the footer background gradient. The first color is the top color. The second color is the bottom color.
Properties:
Name | Type | Attribute | Description |
footerColors | * |
public footerDrawTopBorder: * source
[Style(name="footerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn
Properties:
Name | Type | Attribute | Description |
footerDrawTopBorder | * |
public footerHorizontalGridLineColor: * source
[Style(name="footerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
footerHorizontalGridLineColor | * |
public footerHorizontalGridLineThickness: * source
[Style(name="footerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the footer horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
footerHorizontalGridLineThickness | * |
public footerHorizontalGridLines: * source
[Style(name="footerHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
footerHorizontalGridLines | * |
public footerPaddingBottom: * source
[Style(name="footerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
footerPaddingBottom | * |
public footerPaddingLeft: * source
[Style(name="footerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
footerPaddingLeft | * |
public footerPaddingRight: * source
[Style(name="footerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
footerPaddingRight | * |
public footerPaddingTop: * source
[Style(name="footerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
footerPaddingTop | * |
public footerRollOverColors: * source
[Style(name="footerRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the footer. The default value is [0xCCCCCC,0xCFCFCF]
Properties:
Name | Type | Attribute | Description |
footerRollOverColors | * |
public footerStyleName: String source
[Style(name="footerStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column headers.
Properties:
Name | Type | Attribute | Description |
footerStyleName | * |
public footerVerticalGridLineColor: * source
[Style(name="footerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
footerVerticalGridLineColor | * |
public footerVerticalGridLineThickness: * source
[Style(name="footerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the footer vertical grid lines.
Properties:
Name | Type | Attribute | Description |
footerVerticalGridLineThickness | * |
public footerVerticalGridLines: * source
[Style(name="footerVerticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
footerVerticalGridLines | * |
public footerVisible: Boolean source
If you have enableFooters set to true but want the footer row to not appear, you can set this value.
Properties:
Name | Type | Attribute | Description |
footerVisible | * |
public forcePagerRow: Boolean source
Use 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.
Properties:
Name | Type | Attribute | Description |
forcePagerRow | * |
public hasGroupedColumns: boolean source
Flag to set if column groups exist
Properties:
Name | Type | Attribute | Description |
hasGroupedColumns | * |
public headerColors: * source
[Style(name="headerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the header background gradient. The first color is the top color. The second color is the bottom color.
Properties:
Name | Type | Attribute | Description |
headerColors | * |
public headerDrawTopBorder: * source
[Style(name="headerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border
Properties:
Name | Type | Attribute | Description |
headerDrawTopBorder | * |
public headerHorizontalGridLineColor: * source
[Style(name="headerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
headerHorizontalGridLineColor | * |
public headerHorizontalGridLineThickness: * source
[Style(name="headerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the header horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
headerHorizontalGridLineThickness | * |
public headerHorizontalGridLines: * source
[Style(name="headerHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
headerHorizontalGridLines | * |
public headerPaddingBottom: * source
[Style(name="headerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
headerPaddingBottom | * |
public headerPaddingLeft: * source
[Style(name="headerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
headerPaddingLeft | * |
public headerPaddingRight: * source
[Style(name="headerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
headerPaddingRight | * |
public headerPaddingTop: * source
[Style(name="headerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
headerPaddingTop | * |
public headerRollOverColors: * source
[Style(name="headerRollOverColors", type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the header.
The default value is [0xE6E6E6,0xFFFFFF]
Properties:
Name | Type | Attribute | Description |
headerRollOverColors | * |
public headerSeperatorWidth: Number source
Width to show the resize indicator between columns. Defaults to 4
Properties:
Name | Type | Attribute | Description |
headerSeperatorWidth | * |
public headerStyleName: String source
[Style(name="headerStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the column headers.
Properties:
Name | Type | Attribute | Description |
headerStyleName | * |
public headerVerticalGridLineColor: * source
[Style(name="headerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
headerVerticalGridLineColor | * |
public headerVerticalGridLineThickness: * source
[Style(name="headerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the header vertical grid lines.
Properties:
Name | Type | Attribute | Description |
headerVerticalGridLineThickness | * |
public headerVerticalGridLines: * source
[Style(name="headerVerticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
headerVerticalGridLines | * |
public headerVisible: Boolean source
Whether or not to show the header row
Properties:
Name | Type | Attribute | Description |
headerVisible | * |
public horizontalGridLineColor: * source
[Style(name="horizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
horizontalGridLineColor | * |
public horizontalGridLineThickness: * source
[Style(name="horizontalGridLineThickness", type="Number", format="Length", inherit="yes")] Thickness of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
horizontalGridLineThickness | * |
public horizontalGridLines: Boolean source
[Style(name="horizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
horizontalGridLines | * |
public initialSortAscending: Boolean source
If true, initial sort direction for this level is ascending. Defaults to true.
Properties:
Name | Type | Attribute | Description |
initialSortAscending | * |
public initialSortField: String source
The property of the object on this level that should be used in the default sort.
Properties:
Name | Type | Attribute | Description |
initialSortField | * |
public itemLoadMode: String source
The 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.
Properties:
Name | Type | Attribute | Description |
itemLoadMode | * |
public levelRendererHeight: Number source
Height 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.
Properties:
Name | Type | Attribute | Description |
levelRendererHeight | * |
public minHeaderHeight: Number source
minimu header height Not Yet Implemented.
Properties:
Name | Type | Attribute | Description |
minHeaderHeight | * |
public multiColumnSortNumberHeight: Number source
[Style(name="multiColumnSortNumberHeight", type="Number", inherit="no")] The height of the numeric value representing the order of the column sort.
Properties:
Name | Type | Attribute | Description |
multiColumnSortNumberHeight | * |
public multiColumnSortNumberStyleName: String source
[Style(name="multiColumnSortNumberStyleName", type="String", inherit="no")] The name of a CSS style declaration for controlling other aspects of the appearance of the numeric value representing the order of the column sort.
Properties:
Name | Type | Attribute | Description |
multiColumnSortNumberStyleName | * |
public multiColumnSortNumberWidth: Number source
[Style(name="multiColumnSortNumberWidth", type="Number", inherit="no")] The width of the numeric value representing the order of the column sort.
Properties:
Name | Type | Attribute | Description |
multiColumnSortNumberWidth | * |
public nestIndent: Number source
The indentation to apply to each progressive nest level.
Properties:
Name | Type | Attribute | Description |
nestIndent | * |
public nestIndentPaddingCellRenderer: * source
Container for the nest indent padding cell. Needs to inherit from FlexDataGridExpandCollapseHeaderCell. Defaults to FlexDataGridExpandCollapseCell
Properties:
Name | Type | Attribute | Description |
nestIndentPaddingCellRenderer | * |
public nestIndentPaddingRenderer: flexiciousNmsp.ClassFactory source
The inner content of the padding cell. Defaults to a plain old UI component
Properties:
Name | Type | Attribute | Description |
nestIndentPaddingRenderer | * |
public nextLevel: flexiciousNmsp.FlexDataGridColumnLevel source
Declaration of the next level of columns
Properties:
Name | Type | Attribute | Description |
nextLevel | * |
public nextLevelRenderer: flexiciousNmsp.ClassFactory source
A 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.
Properties:
Name | Type | Attribute | Description |
nextLevelRenderer | * |
public openItems: *[] source
public paddingBottom: * source
[Style(name="paddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
paddingBottom | * |
public paddingLeft: * source
[Style(name="paddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
paddingLeft | * |
public paddingRight: * source
[Style(name="paddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
paddingRight | * |
public paddingTop: * source
[Style(name="paddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
paddingTop | * |
public pageSize: Number source
The number of records to display per page
Properties:
Name | Type | Attribute | Description |
pageSize | * |
public pagerCellRenderer: * source
Container for the footer renderer. Needs to inherit from FlexDataGridPagerCell. Defaults to FlexDataGridPagerCell
Properties:
Name | Type | Attribute | Description |
pagerCellRenderer | * |
public pagerColors: * source
[Style(name="pagerColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the pager background gradient. The first color is the top color. The second color is the bottom color.
Properties:
Name | Type | Attribute | Description |
pagerColors | * |
public pagerDrawTopBorder: * source
[Style(name="pagerDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn
Properties:
Name | Type | Attribute | Description |
pagerDrawTopBorder | * |
public pagerHorizontalGridLineColor: * source
[Style(name="pagerHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
pagerHorizontalGridLineColor | * |
public pagerHorizontalGridLineThickness: * source
[Style(name="pagerHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the pager horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
pagerHorizontalGridLineThickness | * |
public pagerHorizontalGridLines: * source
[Style(name="pagerHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
pagerHorizontalGridLines | * |
public pagerPaddingBottom: * source
[Style(name="pagerPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
pagerPaddingBottom | * |
public pagerPaddingLeft: * source
[Style(name="pagerPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
pagerPaddingLeft | * |
public pagerPaddingRight: * source
[Style(name="pagerPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
pagerPaddingRight | * |
public pagerPaddingTop: * source
[Style(name="pagerPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
pagerPaddingTop | * |
public pagerPosition: String source
@deprecated. This does not appply to Ultimate.
The horizontal positioning of the contents of the pager.
Please use the displayOrder property to control the vertical positioning
Handled by default if you use the built in pager (com.flexicious.grids.columns.footers.PagerControl)
, but if you implement your own com.flexicious.controls.interfaces.IPager, then needs to be handled by you.
Properties:
Name | Type | Attribute | Description |
pagerPosition | * |
public pagerRollOverColors: * source
[Style(name="pagerRollOverColors",type="Array", arrayType="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the pager. The default value is [0xE6E6E6,0xFFFFFF]
Properties:
Name | Type | Attribute | Description |
pagerRollOverColors | * |
public pagerVerticalGridLineColor: * source
[Style(name="pagerVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
pagerVerticalGridLineColor | * |
public pagerVerticalGridLineThickness: * source
[Style(name="pagerVerticalGridLineThickness", type="Number", format="Length")] Thickness of the pager vertical grid lines.
Properties:
Name | Type | Attribute | Description |
pagerVerticalGridLineThickness | * |
public pagerVerticalGridLines: * source
[Style(name="pagerVerticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
pagerVerticalGridLines | * |
public pagerVisible: Boolean source
If you have enablePaging set to true but want the pager row to not appear, you can set this value.
Properties:
Name | Type | Attribute | Description |
pagerVisible | * |
public parentField: String source
A property that points to the parent object Used in conjunction with enableSelectionBubble property on the grid.
Properties:
Name | Type | Attribute | Description |
parentField | * |
public rendererColors: * source
[Style(name="rendererColors", type="Array", arrayType="uint", format="Color", inherit="yes")] An array of two colors used to draw the renderer background gradient. The first color is the top color. The second color is the bottom color.
Properties:
Name | Type | Attribute | Description |
rendererColors | * |
public rendererDrawTopBorder: * source
[Style(name="rendererDrawTopBorder", type="Boolean", inherit="no")] Flag that indicates whether to force the top border, when horizontal gridlines are not drawn
Properties:
Name | Type | Attribute | Description |
rendererDrawTopBorder | * |
public rendererHorizontalGridLineColor: * source
[Style(name="rendererHorizontalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
rendererHorizontalGridLineColor | * |
public rendererHorizontalGridLineThickness: * source
[Style(name="rendererHorizontalGridLineThickness", type="Number", format="Length")] Thickness of the renderer horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
rendererHorizontalGridLineThickness | * |
public rendererHorizontalGridLines: * source
[Style(name="rendererHorizontalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show horizontal grid lines between
the rows.
If true
, shows horizontal grid lines.
If false
, hides horizontal grid lines.
Properties:
Name | Type | Attribute | Description |
rendererHorizontalGridLines | * |
public rendererPaddingBottom: * source
[Style(name="rendererPaddingBottom", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
rendererPaddingBottom | * |
public rendererPaddingLeft: * source
[Style(name="rendererPaddingLeft", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
rendererPaddingLeft | * |
public rendererPaddingRight: * source
[Style(name="rendererPaddingRight", type="Number", format="Length", inherit="no")] Number of pixels between the controls right border and the right edge of its content area.
Properties:
Name | Type | Attribute | Description |
rendererPaddingRight | * |
public rendererPaddingTop: * source
[Style(name="rendererPaddingTop", type="Number", format="Length", inherit="no")] Number of pixels between the controls left border and the left edge of its content area.
Properties:
Name | Type | Attribute | Description |
rendererPaddingTop | * |
public rendererRollOverColors: * source
- [Style(name="rendererRollOverColors", type="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over a level renderer. The default value is [0xFFFFFF,0xFFFFFF]
Properties:
Name | Type | Attribute | Description |
rendererRollOverColors | * |
public rendererVerticalGridLineColor: * source
[Style(name="rendererVerticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
rendererVerticalGridLineColor | * |
public rendererVerticalGridLineThickness: * source
[Style(name="rendererVerticalGridLineThickness", type="Number", format="Length")] Thickness of the renderer vertical grid lines.
Properties:
Name | Type | Attribute | Description |
rendererVerticalGridLineThickness | * |
public rendererVerticalGridLines: * source
[Style(name="rendererVerticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
rendererVerticalGridLines | * |
public reusePreviousLevelColumns: Boolean source
Setting 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.
Properties:
Name | Type | Attribute | Description |
reusePreviousLevelColumns | * |
public rollOverColor: * source
[Style(name="rollOverColor", type="uint", format="Color", inherit="yes")] The color of the row background when the user rolls over the row.
The default value for the Halo theme is 0xB2E1FF
.
The default value for the Spark theme is 0xCEDBEF
.
Properties:
Name | Type | Attribute | Description |
rollOverColor | * |
public rowDisabledFunction: Function source
A 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 }
Properties:
Name | Type | Attribute | Description |
rowDisabledFunction | * |
public rowSelectableFunction: null source
A 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; }
Properties:
Name | Type | Attribute | Description |
rowSelectableFunction | * |
public rowTextColorFunction: Function source
A 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).
Properties:
Name | Type | Attribute | Description |
rowTextColorFunction | * |
public scrollbarPadRenderer: flexiciousNmsp.ClassFactory source
The inner content of the scroll bar pad cell. Defaults to a plain old UI component
Properties:
Name | Type | Attribute | Description |
scrollbarPadRenderer | * |
public selectableField: String source
A property on the object that identifies whether the object is selectable.
Properties:
Name | Type | Attribute | Description |
selectableField | * |
public selectedField: String source
A field on the dataprovider that indicates that this item should be selected
Properties:
Name | Type | Attribute | Description |
selectedField | * |
public selectedKeyField: String source
A 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.
Properties:
Name | Type | Attribute | Description |
selectedKeyField | * |
public selectionColor: * source
[Style(name="selectionColor", type="uint", format="Color", inherit="yes")] The color of the background for the row when the user selects an item renderer in the row.
The default value for the Halo theme is 0x7FCEFF
.
The default value for the Spark theme is 0xA8C6EE
.
Properties:
Name | Type | Attribute | Description |
selectionColor | * |
public selectionDisabledColor: * source
[Style(name="selectionDisabledColor", type="uint", format="Color", inherit="yes")] The color of the background of a renderer when the component is disabled.
Properties:
Name | Type | Attribute | Description |
selectionDisabledColor | * |
public sortArrowSkin: * source
[Style(name="sortArrowSkin", type="Class", inherit="no")]
The class to use as the skin for the arrow that indicates the column sort
direction.
The default value for the Halo theme is mx.skins.halo.DataGridSortArrow
.
The default value for the Spark theme is mx.skins.spark.DataGridSortArrow
.
Properties:
Name | Type | Attribute | Description |
sortArrowSkin | * |
public stickyHeadersAlpha: number source
The alpha to apply to sticky header row. See enableStickyHeaders.
Properties:
Name | Type | Attribute | Description |
stickyHeadersAlpha | * |
public textAlign: String source
[Style(name="textAlign", type="String", enumeration="left,center,right", inherit="yes")]
Alignment of text within a container.
Possible values are "left"
, "right"
,
or "center"
.
The default value for most components is "left"
.
For the FormItem component,
the default value is "right"
.
For the Button, LinkButton, and AccordionHeader components,
the default value is "center"
, and
this property is only recognized when the
labelPlacement
property is set to "left"
or
"right"
.
If labelPlacement
is set to "top"
or
"bottom"
, the text and any icon are centered.
Properties:
Name | Type | Attribute | Description |
textAlign | * |
public textDecoration: String source
[Style(name="textDecoration", type="String", enumeration="none,underline", inherit="yes")]
Determines whether the text is underlined.
Possible values are "none"
and "underline"
.
Properties:
Name | Type | Attribute | Description |
textDecoration | * |
public textDisabledColor: * source
[Style(name="textDisabledColor", type="uint", format="Color", inherit="yes")] The color of the text of a renderer when the component is disabled.
Properties:
Name | Type | Attribute | Description |
textDisabledColor | * |
public textRollOverColor: * source
[Style(name="textRollOverColor", type="uint", format="Color", inherit="yes")] Color of the text when the user rolls over a row.
Properties:
Name | Type | Attribute | Description |
textRollOverColor | * |
public textSelectedColor: * source
[Style(name="textSelectedColor", type="uint", format="Color", inherit="yes")] Color of the text when the user selects a row.
Properties:
Name | Type | Attribute | Description |
textSelectedColor | * |
public verticalGridLineColor: * source
[Style(name="verticalGridLineColor", type="uint", format="Color", inherit="yes")] The color of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
verticalGridLineColor | * |
public verticalGridLineThickness: * source
[Style(name="verticalGridLineThickness", type="Number", format="Length", inherit="yes")] Thickness of the vertical grid lines.
Properties:
Name | Type | Attribute | Description |
verticalGridLineThickness | * |
public verticalGridLines: Boolean source
[Style(name="verticalGridLines", type="Boolean", inherit="no")]
Flag that indicates whether to show vertical grid lines between
the columns.
If true
, shows vertical grid lines.
If false
, hides vertical grid lines.
Properties:
Name | Type | Attribute | Description |
verticalGridLines | * |
Public Methods
public addColumn(col: flexiciousNmsp.FlexDataGridColumn) source
Adds 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;
Params:
Name | Type | Attribute | Description |
col | flexiciousNmsp.FlexDataGridColumn |
public addSort(sort: *) source
For multi column sort support.
Params:
Name | Type | Attribute | Description |
sort | * |
public adjustColumnWidths(widestWidth: number, equally: boolean) source
Once we have the widest width, since we don't 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.
public applyColumnWidthFromContent(col: *, provider: *) source
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
Params:
Name | Type | Attribute | Description |
col | * | The FlexDataGridColumn object |
|
provider | * | The provider used to figure out the text width. You may use the grid.flatten(this.getNestDepth(),false,true,true,true,columnWidthModeFitToContentSampleSize); |
public areAllSelected(items: Object, checkLength: Boolean): Boolean source
For header checkbox state, returns if all items in the grid are selected.
public areAnySelected(itemsToCheck: object, recursive: boolean): boolean source
Returns true if there is at least 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.
public calculateHeaderHeights() source
For columns with headerWordWrap, calculates the height required to display text in full.
public cascadeProperty(prp: *, value: *) source
Applies the passed in value to the provided property and cascades that value down to the next level, if one exists.
Params:
Name | Type | Attribute | Description |
prp | * | The property to apply |
|
value | * | The value to apply |
public checkRowDisabled(cell: *, item: *): * source
Checks disabled flag.
Params:
Name | Type | Attribute | Description |
cell | * | ||
item | * |
Return:
* |
public checkRowSelectable(cell: *, obj: *): * source
IF rowSelectableFunction is specified, returns result of that. If selectableField is specified, returns value of that on the obj object Else returns true
Params:
Name | Type | Attribute | Description |
cell | * | ||
obj | * |
Return:
* |
public clearColumns(rebuild: boolean) source
Clears 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.
Params:
Name | Type | Attribute | Description |
rebuild | boolean |
public clearFilter(recursive: boolean) source
Removes the filter at this level, and all of this child levels, if specified.
Params:
Name | Type | Attribute | Description |
recursive | boolean |
public clearSelection(dispatch: *) source
Clears the selected rows and cells.
Params:
Name | Type | Attribute | Description |
dispatch | * |
public clone(transferCols: *): * source
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.
Params:
Name | Type | Attribute | Description |
transferCols | * |
Return:
* |
public createFilter(parentObject: object, inFilter: flexiciousNmsp.Filter): flexiciousNmsp.Filter source
Returns the filter for this level
Params:
Name | Type | Attribute | Description |
parentObject | object | ||
inFilter | flexiciousNmsp.Filter |
Return:
flexiciousNmsp.Filter |
public dispatchEvent(event: *): * source
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...
Override:
EventDispatcher#dispatchEventParams:
Name | Type | Attribute | Description |
event | * |
Return:
* |
public distributeColumnWidthsEqually() source
Modifies the columns so the width is distributed equally. Columns that are fixedWidth are not updated.
public ensureRowNumberColumn() source
public existsInCursor(item: Object): * source
Params:
Name | Type | Attribute | Description |
item | Object |
Return:
* |
public getAvailableWidth(): number source
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.
public getCellCustomBackgroundDrawFunction(): Function source
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 getCheckBoxStateBasedOnExclusion(item: object, useBubble: boolean, checkDisabled: boolean): * source
Return:
* |
public getChildren(object: object, filter: boolean, page: boolean, sort: boolean): object source
If 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
public getChildrenLength(object: object, filter: boolean, page: boolean, sort: boolean): number source
Calls getChildren, and if result is XML or XMLList, returns length() else returns length;
public getColumnByDataField(fld: String, by: String): flexiciousNmsp.FlexDataGridColumn source
Returns the column with the specified datafield
Return:
flexiciousNmsp.FlexDataGridColumn |
public getColumnByUniqueIdentifier(fld: String): flexiciousNmsp.FlexDataGridColumnLevel source
Returns the column with the specified UniqueIdentifier
Params:
Name | Type | Attribute | Description |
fld | String |
Return:
flexiciousNmsp.FlexDataGridColumnLevel |
public getColumnGroupsAtLevel(cgLevel: number, groups: Array, result: Array, start: number): Array source
Returns the column groups specified at the level cgLevel.
public getColumnOwnerLevel(): flexiciousNmsp.FlexDataGridColumnLevel source
Gets the level that is the ultimate column owner.
Return:
flexiciousNmsp.FlexDataGridColumnLevel |
public getColumnsByLockMode(types: Array): Array source
List of visible columns of the specified lock modes.
Params:
Name | Type | Attribute | Description |
types | Array |
public getColumnsByWidthMode(modes: Array): Array source
Params:
Name | Type | Attribute | Description |
modes | Array |
public getEnableMultiColumnSort(): boolean source
Returns true if the nest depth is 1 and grid as the enableMultiColumnSort field enabled.
public getExportableColumns(lockModes: *, deep: *, options: *): Array source
All visible columns where excludeFromExport=false
Params:
Name | Type | Attribute | Description |
lockModes | * | ||
deep | * | ||
options | * |
public getFilterArguments(): ArrayCollection source
Gets the list of filter arguments at this level.
Return:
ArrayCollection |
public getFilterHeight(): number source
Same as filterRowHeight, except no built in logic to handle enableFilters and filterVisible.
public getFlowColumns(): Array source
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and itemRenderer not null
public getFlowHeaderColumns(): Array source
Columns where wordWrap=true || variableRowHeightUseRendererForCalculation and headerRenderer is not null
public getItemFromKey(itemKey: *, flat: object): object source
Provided an item key, loops through the data provider, and finds the item with the provided key.
Params:
Name | Type | Attribute | Description |
itemKey | * | ||
flat | object |
public getItemKey(item: object, saveLevel: boolean): object source
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. 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.
public getItemsInSelectionHierarchy(parent: object, recurse: boolean, inNestDepth: Number, returnValue: Array, clear: boolean, getUnSelected: boolean): Array source
public getMaxColumnGroupDepthOrHeight(soFar: *, children: *, what: *): * source
Get the maximum depth or height of column groups.
Params:
Name | Type | Attribute | Description |
soFar | * | ||
children | * | ||
what | * |
Return:
* |
public getNestDepth(): * source
How deep in the nesting hierarchy is this item. Starts at 1 for the columnLevel that belongs to the grid.
Return:
* |
public getOpenKeys(keys: Array, provider: object) source
A 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.
public getPagerHeight(): number source
Same as pagerRowHeight, except no built in logic to handle enableFilters and filterVisible.
public getPagerRenderer(): * source
A Class that implements com.flexicious.controls.interfaces.IPager. Defaults to a built in implementation
Return:
* |
public getPagerRowHeight(): number source
The height of the pager row. If not set, defaults to the value of the rowHeight property
public getParentLevel(): flexiciousNmsp.FlexDataGridColumnLevel source
The parent level for this level. For the root level, this is null.
Return:
flexiciousNmsp.FlexDataGridColumnLevel |
public getPrintableColumns(lockModes: Array, deep: boolean): Array source
All visible columns where excludeFromPrint=false
public getRowHeightFromType(chromeLevel: *): * source
Gets the height of the header, footer, pager if visible.
Params:
Name | Type | Attribute | Description |
chromeLevel | * |
Return:
* |
public getSelectedCells(): Array source
A list of CellInfo
objects. When grid.selectionMode=SINGLE_CELL, this collection contains only one item
public getSelectedItem(): Object source
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 getSelectedKeys(): Array source
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 getSelectedKeysState(allItems: object): String source
If all items are selected, returns TriStateCheckBox.STATE_CHECKED. If none are selected, returns TriStateCheckBox.STATE_UNCHECKED else returns TriStateCheckBox.STATE_MIDDLE
Params:
Name | Type | Attribute | Description |
allItems | object |
public getSelectedObjects(): Array source
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.getColumnLevel().nextLevel...nextLevel.selectedKeys You can also call grid.getSelectedObjects to get selected objects at all levels.
public getSelectedObjectsDeep(soFar: Array, getKey: boolean, unSelected: boolean) source
For nested datagrids, used to get all records at all levels
public getShowableColumns(lockModes: Array, deep: Boolean): Array source
All columns that can be "hidden"
public getSortIndex(fld: *, return1: *, returnSortObject: *): * source
Gets the index at which the given column appears in the sort list.
Params:
Name | Type | Attribute | Description |
fld | * | ||
return1 | * | ||
returnSortObject | * |
Return:
* |
public getStyleValue(styleProp: String): * source
If a value exists for a style property at the level return it, else return the value of the property at the grid level.
Params:
Name | Type | Attribute | Description |
styleProp | String |
Return:
* |
public getSumOfColumnWidths(modes: *): * source
Gets the sum of all column widths.
Params:
Name | Type | Attribute | Description |
modes | * |
Return:
* |
public getUnSelectedObjects(): Array source
When grid.enableSelectionExclusion is set to true, a list of items that the user explicitly unselected is stored here.
public getValue(val: *): * source
If value is primitive, does a to string, if XMLList, returns the text.
Params:
Name | Type | Attribute | Description |
val | * |
Return:
* |
public getVisibleColumns(lockModes: *): * source
All columns where visible=true and lock modes match the specified lock modes.
Params:
Name | Type | Attribute | Description |
lockModes | * |
Return:
* |
public getWidestLeftLockedWidth(widestLeftLockedWidth: number): number source
Params:
Name | Type | Attribute | Description |
widestLeftLockedWidth | number |
public getWidestRightLockedWidth(widestRightLockedWidth: number): number source
Returns the widest right locked width.
Params:
Name | Type | Attribute | Description |
widestRightLockedWidth | number |
public getWidestWidth(widestWidth: number, deep: boolean): number source
At 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.
public hasSort(fld: *): * source
Returns true if the given column is already in the sort
Params:
Name | Type | Attribute | Description |
fld | * |
Return:
* |
public initializeLevel(grid: *) source
Params:
Name | Type | Attribute | Description |
grid | * |
public invalidateCache() source
public invalidateCalculationsDown() source
public invalidateList() source
public isCellSelected(item: object, col: flexiciousNmsp.FlexDataGridColumn): flexiciousNmsp.FlexDataGridCell source
Returns true if the CellInfo for the specified item and column exists in the selectedCells collection.
Params:
Name | Type | Attribute | Description |
item | object | ||
col | flexiciousNmsp.FlexDataGridColumn |
Return:
flexiciousNmsp.FlexDataGridCell |
public isItemEqual(itemOrKeyToCompare: object, rowData: object, useItemKeyForCompare: boolean): boolean source
Provided an item or a key, and a flag that indicates what it is, returns true if the item matches the respective comparison.
public isItemSelected(item: object, useExclusion: boolean): boolean source
Returns true if the getItemKey for the specified item exists in the selectedKeys collection.
public isItemUnSelected(item: number): boolean source
Returns true if the getItemKey for the specified item exists in the selectedKeys collection.
Params:
Name | Type | Attribute | Description |
item | number |
public onSelectedKeysChange() source
public removeColumn(col: flexiciousNmsp.FlexDataGridColumn) source
Removes the column from the collection of columns at this level.
Params:
Name | Type | Attribute | Description |
col | flexiciousNmsp.FlexDataGridColumn |
public selectAll(select: boolean, dispatch: boolean, provider: *, subset: Array, useKeys: boolean, openItems: boolean): * source
Return:
* |
public selectCell(cell: flexiciousNmsp.FlexDataGridColumn, selected: boolean) source
Selects or un selects a cell
Params:
Name | Type | Attribute | Description |
cell | flexiciousNmsp.FlexDataGridColumn | ||
selected | boolean |
public selectRow(item: object, selected: boolean, dispatch: boolean, recurse: boolean, bubble: boolean, parent: object) source
Selects or un selects a row
public setCellCustomBackgroundDrawFunction(value: Function) source
Params:
Name | Type | Attribute | Description |
value | Function |
public setColumnLevel() source
public setColumnWidthsUsingWidthMode(equally: boolean) source
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.
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:
Params:
Name | Type | Attribute | Description |
equally | boolean |
public setCurrentSort(fld: *, asc: *) source
Clears out the current sort collection and sets it to the passed in values
Params:
Name | Type | Attribute | Description |
fld | * | ||
asc | * |
public setDepth(nestLevel: *) source
Params:
Name | Type | Attribute | Description |
nestLevel | * |
public setEnableFilters(value: *) source
Sets whether or not to show the filter
Params:
Name | Type | Attribute | Description |
value | * |
public setEnableFooters(value: boolean) source
Sets whether or not to show the footer
Params:
Name | Type | Attribute | Description |
value | boolean |
public setEnablePaging(val: *) source
Params:
Name | Type | Attribute | Description |
val | * |
public setFilterHeight(value: *) source
Params:
Name | Type | Attribute | Description |
value | * |
public setGrid(grid: *) source
Params:
Name | Type | Attribute | Description |
grid | * |
public setGroupedColumns(value: Array) source
Grouped columns - only supported at the top level.
Params:
Name | Type | Attribute | Description |
value | Array |
public setPagerRenderer(value: *) source
A Class that implements com.flexicious.controls.interfaces.IPager. Defaults to a built in implementation
Params:
Name | Type | Attribute | Description |
value | * |
public setParentLevel() source
public setSelectedItemsBasedOnSelectedField(items: Array, parent: object, openItems: Array): boolean source
Iterates through items, checks to see if the selected bit is on, and if so, adds it to the open list.
public setSelectedKeys(objects: Array, openItems: boolean) source
For 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
public setSelectedKeysState(val: *) source
Sets the selected state at this level. If you specify checked, adds all rows to the selected keys collection.
Params:
Name | Type | Attribute | Description |
val | * |
public setSelectedObjects(objects: Array, openItems: boolean) source
For 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
public shiftColumns(columnToInsert: flexiciousNmsp.FlexDataGridColumn, insertBefore: flexiciousNmsp.FlexDataGridColumn, movingCg: boolean) source
Inserts the column specified column before the specified column
Params:
Name | Type | Attribute | Description |
columnToInsert | flexiciousNmsp.FlexDataGridColumn | ||
insertBefore | flexiciousNmsp.FlexDataGridColumn | ||
movingCg | boolean |
public showColumns(colsToShow: Array) source
Sets the visible flag on all columns except the ones specified in the list to false.
Params:
Name | Type | Attribute | Description |
colsToShow | Array |
public showPrintableColumns() source
Sets the visible flag on all columns except the ones where excludeFromPrint=true.
public swapColumns(cg: flexiciousNmsp.FlexDataGridColumnGroup, columnToInsert: flexiciousNmsp.FlexDataGridColumn, insertBefore: flexiciousNmsp.FlexDataGridColumn) source
Params:
Name | Type | Attribute | Description |
cg | flexiciousNmsp.FlexDataGridColumnGroup | ||
columnToInsert | flexiciousNmsp.FlexDataGridColumn | ||
insertBefore | flexiciousNmsp.FlexDataGridColumn |
public transferProps(from: *, to: *, checkForChanges: *) source
Params:
Name | Type | Attribute | Description |
from | * | ||
to | * | ||
checkForChanges | * |