Packagecom.flexicious.grids
Classpublic class ExtendedAdvancedDataGrid
InheritanceExtendedAdvancedDataGrid Inheritance EadgBase Inheritance mx.controls.AdvancedDataGrid
Implements IAdvancedExtendedDataGrid

This is the main class that extends from mx.controls.DataGrid, and adds Filtering, Paging, and Filtering capabilities to it.

Default MXML PropertydataProvider



Public Properties
 PropertyDefined By
 InheritedadditionalFilterArgumentsFunction : Function
In scenarios where there are detached filters, this function may be used to add on to the list of arguments before the filter is run.
EadgBase
  autoLoadPreferences : Boolean = true
ExtendedAdvancedDataGrid
  clickBehavior : String
Grid can be setup to launch a popup when the user clicks or hovers.
ExtendedAdvancedDataGrid
  clickParentDisplayObject : DisplayObject
The parent object to use while calling PopupManager.addPopUp.
ExtendedAdvancedDataGrid
  clickPopupClass : IFactory
The popup class to launch.
ExtendedAdvancedDataGrid
  clickPopupHeight : Number
The height of the popup to launch when the clickBehavior is set.
ExtendedAdvancedDataGrid
  clickPopupTitle : String
The title of the popup to launch when the clickBehavior is set.
ExtendedAdvancedDataGrid
  clickPopupWidth : Number
The width of the popup to launch when the clickBehavior is set.
ExtendedAdvancedDataGrid
  collectionManipulatorFactory : IFactory
The class that manages the collection filtering, paging and sorting.
ExtendedAdvancedDataGrid
  _columnWidthsDirty : Boolean = false
ExtendedAdvancedDataGrid
  copyAllRowsMenuText : String = Copy All Rows
Text for the Copy All Rows
ExtendedAdvancedDataGrid
  copyCellMenuText : String = Copy Cell
Text for the Copy Cell Menu
ExtendedAdvancedDataGrid
  copySelectedRowMenuText : String = Copy Selected Row
Text for the Copy Selected Row
ExtendedAdvancedDataGrid
  currentItemUnderMouse : Object
ExtendedAdvancedDataGrid
 InheriteddisplayOrder : String
A comma seperated list of the following strings: filter,body,footer,pager for the Advanced Data Grid filter,header,body,footer,pager for the Classic Data Grid 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.
EadgBase
  enableColumnWidthMode : Boolean = true
Flag to use the columnWidthMode based column resizing.
ExtendedAdvancedDataGrid
 InheritedenableCopy : Boolean
A flag that indicates whether or not to show the context menu options to copy the cell,row, or table data
EadgBase
 InheritedenableDoubleClickEdit : Boolean
Enables or disables keyboard navigation for filters.
EadgBase
 InheritedenableExport : Boolean
A flag that may be used for binding purposes in the custom pager control.
EadgBase
 InheritedenableFilters : Boolean
A flag that indicates whether or not to show the filters
EadgBase
 InheritedenableFooters : Boolean
A flag that indicates whether or not to show the footer
EadgBase
 InheritedenableKeyboardNavigation : Boolean
Enables or disables keyboard navigation for filters.
EadgBase
  enableMultiplePreferences : Boolean
A Flag that will enable multiple named versions of preferences to be persisted.
ExtendedAdvancedDataGrid
  enablePaging : Boolean
A flag to indicate whether or not to enable paging functionality
ExtendedAdvancedDataGrid
  enablePreferencePersistence : Boolean
When set to true, causes the grid to look for settings stored previously in the local shared object store if preferencePersistenceMode='client' or dispatch an event requesting settings from the server in preferencePersistenceMode='server'
ExtendedAdvancedDataGrid
 InheritedenablePrint : Boolean
A flag that may be used for binding purposes in the custom pager control.
EadgBase
  excelOptions : ExportOptions
The Export options object that is used to configure the excel export behavior - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  exportableColumns : Array
[read-only] Returns a list of columns that have excludeFromExport=false (default)
ExtendedAdvancedDataGrid
 InheritedfilterPageSortMode : String
The Filter/Page/Sort Mode.
EadgBase
  filterRowHeight : Number
The height of the filter row.
ExtendedAdvancedDataGrid
  filterVisible : Boolean
If you have enableFilters set to true but want the filter row to not appear, you can set this value.
ExtendedAdvancedDataGrid
  footerRowHeight : Number
The height of the footer row.
ExtendedAdvancedDataGrid
  footerVisible : Boolean
If you have enableFooters set to true but want the footer row to not appear, you can set this value.
ExtendedAdvancedDataGrid
  forcePagerRow : Boolean
Use this flag to show the pager control even if the enablePaging is set to false.
ExtendedAdvancedDataGrid
  groupedColumns : Array
[override] [write-only] Override the base grouped columns
ExtendedAdvancedDataGrid
  hasGroupedColumns : Boolean
Flag to set if column groupes exist
ExtendedAdvancedDataGrid
  headerSectionHeight : Number
[read-only]
ExtendedAdvancedDataGrid
 InheritedlockedColumns : Array
[read-only] Iterates through the locked columns, and returns them
EadgBase
 InheritedlockedColumnWidth : int
[read-only] Iterates through the locked columns, and adds up the width of these columns
EadgBase
  nativeExcelExporter : Exporter
The default exporter in flexicious is a pure CSV exporter.
ExtendedAdvancedDataGrid
  pageIndex : int
The current page index
ExtendedAdvancedDataGrid
  pager : IPager
[read-only] Handle to the current IPager control.
ExtendedAdvancedDataGrid
 InheritedpagerPosition : String
The horizontal positioning of the contents of the pager.
EadgBase
  pagerRenderer : IFactory
A Class that implements com.flexicious.controls.interfaces.IPager.
ExtendedAdvancedDataGrid
  pagerRowHeight : Number
The height of the pager row.
ExtendedAdvancedDataGrid
  pagerVisible : Boolean
If you have enablePaging set to true but want the pager row to not appear, you can set this value.
ExtendedAdvancedDataGrid
  pageSize : int
The number of records to display per page
ExtendedAdvancedDataGrid
  pdfOptions : PrintOptions
The Print options object that is used to configure the pdf behavior - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  pdfPrinter : IPDFPrinter
A class that takes the PDF Pages as they are generated.
ExtendedAdvancedDataGrid
  popupFactoryExportOptions : IFactory
The renderer that shows up when the user clicks on the Word or Excel button - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  popupFactoryOpenSettingsPopup : IFactory
The renderer that shows up when the user clicks on the Open Settings button - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  popupFactoryPrintOptions : IFactory
The renderer that shows up when the user clicks on the Print or PDF button - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  popupFactorySaveSettingsPopup : IFactory
The renderer that shows up when the user clicks on the Save Settings button - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  popupFactorySettingsPopup : IFactory
The renderer that shows up when the user clicks on the Settings button - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  preferencePersistenceKey : String
String value that uniquely identifies this grid across the application.
ExtendedAdvancedDataGrid
  preferencePersistenceMode : String
String value "server" or "client".
ExtendedAdvancedDataGrid
  preferences : String
Returns an XML representation of the preferences specified in the preferencesToPersist property and values being the actual values.
ExtendedAdvancedDataGrid
  preferencesLoaded : Boolean
[read-only] Returns true if the load preferences has been called.
ExtendedAdvancedDataGrid
  preferencesSet : Boolean
A flag to indicate that the preferences for this grid has been set.
ExtendedAdvancedDataGrid
  preferencesToPersist : String
A comma delimited string of the following values: columnOrder,columnVisiblity,columnWidth,filter,sort,verticalScroll,horizontalScroll Each represents a setting that can potentially be persisted.
ExtendedAdvancedDataGrid
  printableColumns : Array
[read-only] Returns a list of columns that have excludeFromPrint=false (default)
ExtendedAdvancedDataGrid
  printComponentFactory : IFactory
ExtendedAdvancedDataGrid
 InheritedprintExportData : Object
Gets the records to print or to export.
EadgBase
 InheritedprintExportParameters : Object
Any custom data that you wish to pass into the print/export mechanism. This will then be available on Print/Export Options when the Print or Export is run.
EadgBase
  printOptions : PrintOptions
The Print options object that is used to configure the print behavior - currently only supported in Ultimate
ExtendedAdvancedDataGrid
  selectAllState : String
The state of the select all header checkbox.
ExtendedAdvancedDataGrid
  selectedKeyField : String
The property(attribute) of the type(class) of the objects contained within the collection bound to the dataProvider.
ExtendedAdvancedDataGrid
  selectedKeys : ArrayCollection
[read-only] Gets the keys of the objects selected by the user when used in conjunction with the selectedKeyField object
ExtendedAdvancedDataGrid
  selectedObjects : ArrayCollection
[read-only] Gets the objects selected by the user when used in conjunction with the selectedKeyField object
ExtendedAdvancedDataGrid
  settingsColumns : Array
[read-only] Returns a list of columns that have excludeFromPrint=false (default)
ExtendedAdvancedDataGrid
  showSpinnerOnCreationComplete : Boolean
ExtendedAdvancedDataGrid
 InheritedshowSpinnerOnFilterPageSort : Boolean
A flag when set, automatically shows the spinner on creation complete and any filter page or sort operation.
EadgBase
  spinner : ISpinner
ExtendedAdvancedDataGrid
  spinnerFactory : IFactory
Factory responsible for instantiating a new spinner.
ExtendedAdvancedDataGrid
  spinnerLabel : String
The label of the spinner control, you can use styles to control the appearance.
ExtendedAdvancedDataGrid
  totalRecords : int
The total number of records (needs to be set only in server mode, because there is no way for the grid to know how many records on the server match the filter criteria) In client mode, the count of the data provider is used instead.
ExtendedAdvancedDataGrid
  unLockedColumns : Array
[read-only] Returns columns x through columns.count, where x=lockedColumnCount
ExtendedAdvancedDataGrid
  useCompactPreferences : Boolean
If set to true, uses the newer preference persistence scheme introduced in Flexicious 2.0, which stores the preferences as custom string as opposed to XML, making it a lot less verbose.
ExtendedAdvancedDataGrid
  useModuleFactory : Boolean
[read-only] Flag that indicates to use the module factory of the grid to show popups.
ExtendedAdvancedDataGrid
  userSettingsOptionsFunction : Function
Hook for the client to plug in their own UserSettings.
ExtendedAdvancedDataGrid
 InheritedverticalScrollBarOffset : int
[read-only] If the vertical scrollbar is visible, returns the width of the vertical scroll bar.
EadgBase
 InheritedvisibleColumns : Array
[read-only] Returns the visible columns from the unlocked header.
EadgBase
  wordOptions : ExportOptions
The Export options object that is used to configure the word export behavior - currently only supported in Ultimate
ExtendedAdvancedDataGrid
Protected Properties
 PropertyDefined By
 Inherited_customSortIndex : int = -1
EadgBase
 Inherited_displayOrder : String = pager,filter,body,footer
EadgBase
  _iPager : IPager
ExtendedAdvancedDataGrid
 Inherited_triggerEvent : Boolean = true
If we're setting filters programatically, we may not want the filterPageSortChange event to fire.
EadgBase
Public Methods
 MethodDefined By
  
Constructor Adds event listeners to manage runtime addition, removal and resizing of columns.
ExtendedAdvancedDataGrid
  
addContextMenuItem(lbl:String, clickHandler:Function, separatorBefore:Boolean = false):void
Adds the specified context menu item to the context menu.
ExtendedAdvancedDataGrid
  
addSort(sortCol:String, isAscending:Boolean, sortCompareFunction:Function = null):void
Adds a default sort to the grid.
ExtendedAdvancedDataGrid
  
addToSelection(item:Object, bclearSelection:Boolean = true):void
Selects the given item.
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
 Inherited
Clears the sorts that are added via the add sort method.
EadgBase
  
Calls clear on all internal filter controls, resetting the state
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
Clears the checkbox selections when used in conjunction with SelectAllCheckBoxHeaderColumn see com.flexicious.grids.columns.SelectAllCheckBoxHeaderColumn
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
createItemEditor(colIndex:int, rowIndex:int):void
[override]
ExtendedAdvancedDataGrid
 Inherited
createListData(text:String, dataField:String, columnIndex:int):BaseListData
Internal method so we can hook into the List Data mechanism
EadgBase
  
createPopup(popupData:Object):Object
Creates the popup.
ExtendedAdvancedDataGrid
  
Gets the class responsible for handling the PrintUI should be a IPrintDataGrid
ExtendedAdvancedDataGrid
  
By default, when the grid's creation complete event is dispatched, the grid will go in and load the saved preference.
ExtendedAdvancedDataGrid
  
When enableMultiplePreferences = true, this represents the currently applied preference
ExtendedAdvancedDataGrid
  
getDistinctValuesForColumn(dataField:String):ArrayCollection
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
getFilterArguments():ArrayCollection
ExtendedAdvancedDataGrid
  
getFilterColumn(searchField:String):Object
Given a field to search for, return the column that has it's searchField set to the provided value.
ExtendedAdvancedDataGrid
  
getFilterValue(column:String):*
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
getFilterX(renderer:IFilterControl):Number
Used by filter to identify where relative position for each control for tabbing
ExtendedAdvancedDataGrid
  
When enableMultiplePreferences = true, this represents a list of all preferences saved for this grid.
ExtendedAdvancedDataGrid
  
Gets the item that was under the mouse last
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
 Inherited
getRowText(item:Object):String
Converts an objects properties into tab delimited format
EadgBase
  
ExtendedAdvancedDataGrid
  
Removes the spinner and sets the listContent.alpha back to 1
ExtendedAdvancedDataGrid
  
[override] Need to invalidte our children when we invalidate.
ExtendedAdvancedDataGrid
  
[override]
ExtendedAdvancedDataGrid
  
keyUpOrDown(keyCode:uint):void
From the filter row, if the user clicks up or down arrow, we pass control to the datagrid to update the selection accordingly.
ExtendedAdvancedDataGrid
  
Loads preference values from the Shared object, called automatically in preferencePersistenceMode=client.
ExtendedAdvancedDataGrid
  
pauseKeyboardListeners(filterRenderer:Object):void
Not applicable to classic, only used by Ultimate.
ExtendedAdvancedDataGrid
  
persistPreferences(name:String = Default, isDefault:Boolean = false):void
Persists the preferences as Shared Objects when preferencePersistenceMode=client or dispatches an event with the preference information when preferencePersistenceMode=server
ExtendedAdvancedDataGrid
  
If you want to control when the filter runs, set the filterTriggerEvent="none" on each of the columns, and call this function to trigger the filter
ExtendedAdvancedDataGrid
  
processSort(sorts:ArrayCollection):void
Used by state persistence to load sort settings that were persisted previously.
ExtendedAdvancedDataGrid
  
The non filtered dataprovider is used in various places including: 1) The combobox filters use these to create a list of options to search from 2) The footer operations use them to apply formulas to the entire collection as opposed to whats on the current page 3) The print functionality uses them to calculate footer and header totals If the data provider changes as a result of your code, you should call this method before calling refreshLayout, in order to show the correct data.
ExtendedAdvancedDataGrid
  
Resets the position of each of the filter controls, the position, height and width of the filter and footer container rows, as well as the pager control This is done automatically when the columns are resized, or the list changes, or the grid is resized.
ExtendedAdvancedDataGrid
  
removeContextMenuItem(lbl:String):void
Removes the specified context menu item
ExtendedAdvancedDataGrid
 Inherited
Runs the sorts that are added via the addSort method
EadgBase
  
setColumnWidthsUsingWidthMode(force:Boolean = false):void
Recalculates column widths on basis of columnWidthMode.
ExtendedAdvancedDataGrid
  
setContextMenuEnableDisable(lbl:String, enabled:Boolean):Boolean
Sets the enabled/disabled flag on the specified context menu item.
ExtendedAdvancedDataGrid
  
setContextMenuEnableVisible(lbl:String, visible:Boolean):Boolean
Sets the visible flag on the specified context menu item.
ExtendedAdvancedDataGrid
  
setCurrentPreferenceInfo(val:PreferenceInfo, applyPreferences:Boolean = true):void
When enableMultiplePreferences = true, applies the given preference as the current preference.
ExtendedAdvancedDataGrid
  
setFilterFocus(fld:String):Boolean
ExtendedAdvancedDataGrid
  
setFilterValue(column:String, value:Object, triggerEvent:Boolean = true):void
ExtendedAdvancedDataGrid
  
setFilterValueForPreferences(column:String, value:Object, triggerEvent:Boolean = true):void
ExtendedAdvancedDataGrid
  
Sets the focus on the next focusable filter control, starting at column index 0.
ExtendedAdvancedDataGrid
  
setGridPreferencesInfo(val:GridPreferencesInfo, applyPreferences:Boolean = true):void
Sets the multiple preferences array.
ExtendedAdvancedDataGrid
  
showPopup(popupData:Object):Object
Launches the actual popup.
ExtendedAdvancedDataGrid
  
Shows the spinner with default values defined below: Label: "Loading please wait" X Position : center X of the grid Y Position : center Y of the grid Grid Alpa when the spinner is active : 0.3 Spinner appearance can be modified using styles .
ExtendedAdvancedDataGrid
  
showToaster(message:String, toasterPosition:String = BOTTOM_RIGHT, toasterRenderer:IFactory = null, animationDuration:Number = 1000, visibleDuration:Number = 5000, moveAnimate:Boolean = true, fadeAnimate:Boolean = true):void
[override]
ExtendedAdvancedDataGrid
Protected Methods
 MethodDefined By
  
adjustListContent(unscaledWidth:Number = -1, unscaledHeight:Number = -1):void
[override] In here, we make UI adjustments, basically reducing the space that the grid takes to accomodate the filter, pager and footer rows, if enabled.
ExtendedAdvancedDataGrid
  
buildNoPagingDataProvider(provider:Object, item:Object, childrenField:String):void
ExtendedAdvancedDataGrid
  
collectionChangeHandler(event:Event):void
[override]
ExtendedAdvancedDataGrid
  
[override] During the commit phase, we inspect the changed properties and add/remove controls accordingly.
ExtendedAdvancedDataGrid
  
[override] Override the createChildren method, and: If filters are enabled, add the filter row If footers are enabled, add the footer row If the pager is enabled, create a pager using the pagerRenderer property If the copy items are enabled, add the context menu items to copy
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
returns UserSettingsOptions.create(this);
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
keyDownHandler(event:KeyboardEvent):void
[override]
ExtendedAdvancedDataGrid
  
mouseOverHandler(event:MouseEvent):void
[override]
ExtendedAdvancedDataGrid
  
onCellContextMenuItemClick(event:ContextMenuEvent):void
Method to handle the click for the copy cell menu item Copies the current cell in tab delimited format into the clipboard
ExtendedAdvancedDataGrid
  
onCollectionChange(event:CollectionEvent):void
We just pass on this event for our callers (this is no longer used, it was used for lazy loading.
ExtendedAdvancedDataGrid
  
onContextMenuShown(event:ContextMenuEvent):void
ExtendedAdvancedDataGrid
  
onItemFocusIn(event:AdvancedDataGridEvent):void
If we add anything above list content, the halo rectangle around the focus objects does not account for that.
ExtendedAdvancedDataGrid
  
onItemRollover(event:ListEvent):void
For popup support, we keep track of what the user is hovering over.
ExtendedAdvancedDataGrid
  
onRowContextMenuItemClick(event:ContextMenuEvent):void
Adds the copy menu
ExtendedAdvancedDataGrid
  
onTableContextMenuItemClick(event:ContextMenuEvent):void
Method to handle the click for the copy table menu item Copies the current page in tab delimited format into the clipboard
ExtendedAdvancedDataGrid
  
redrawHeaderAndFooter(event:Event):void
ExtendedAdvancedDataGrid
  
ExtendedAdvancedDataGrid
  
setPreferences(arrayCollection:ArrayCollection):void
Takes an array collection of preferences and applies them to the grid.
ExtendedAdvancedDataGrid
  
sortHandler(event:AdvancedDataGridEvent):void
[override]
ExtendedAdvancedDataGrid
Events
 Event Summary Defined By
  Dispatched when the grid is finished exporting.ExtendedAdvancedDataGrid
  Dispatched right after a grid has printed.ExtendedAdvancedDataGrid
  Dispatched when the grid is about to be exportedExtendedAdvancedDataGrid
  Dispatched right before a grid is about to print.ExtendedAdvancedDataGrid
  Fired when the grid needs to clear its preferences.ExtendedAdvancedDataGrid
  Fired when the enableFilters Flag changesExtendedAdvancedDataGrid
  Fired when the enableFooters Flag changesExtendedAdvancedDataGrid
  Fired when the enablePaging Flag changesExtendedAdvancedDataGrid
  Fired when the enablePreferencePersistence Flag changesExtendedAdvancedDataGrid
  Fired when the filter is applied.ExtendedAdvancedDataGrid
  Fired when the grid's page, sort or filter state changes.ExtendedAdvancedDataGrid
  Fired In preferencePersistenceMode=server , when the grid needs to load its preferences.ExtendedAdvancedDataGrid
  Fired when the Page Size changesExtendedAdvancedDataGrid
  Fired when the grid needs to persist its preferences.ExtendedAdvancedDataGrid
  Fired right before preferences are being loaded and applied.ExtendedAdvancedDataGrid
  Fired only in server mode, when the grid needs to print or export more data than is currently loaded in memory.ExtendedAdvancedDataGrid
  Fired when the select all checkbox is changedExtendedAdvancedDataGrid
  Fired when the checkbox selection changesExtendedAdvancedDataGrid
Styles
 Style Description Defined By
  
filterBackgroundColor
Type: color CSS Inheritance: no
Color of the filter background. Defaults to white. Only for Classic - for ultimate use filterColors
ExtendedAdvancedDataGrid
  
filterBorderColor
Type: color CSS Inheritance: no
Color of the filter border. Defaults to the borderColor attribute of the grid.
ExtendedAdvancedDataGrid
  
filterBorderSides
Type: String Format: Length CSS Inheritance: no
Bounding box sides for the filter. A space-delimited String that specifies the sides of the border to show. The String can contain "top", and "bottom" in any order. The default value is "top bottom", which shows top and bottom.
ExtendedAdvancedDataGrid
  
filterBorderThickness
Type: Number Format: Length CSS Inheritance: no
Bounding box thickness for the filter row. The default value is 1.
ExtendedAdvancedDataGrid
  
footerBackgroundColor
Type: color CSS Inheritance: no
Color of the footer background. Defaults to white. Only for Classic - for ultimate use footerColors
ExtendedAdvancedDataGrid
  
footerBorderColor
Type: color CSS Inheritance: no
Color of the footer border. Defaults to the borderColor attribute of the grid.
ExtendedAdvancedDataGrid
  
footerBorderSides
Type: String Format: Length CSS Inheritance: no
Bounding box sides for the footer. A space-delimited String that specifies the sides of the border to show. The String can contain "top", and "bottom" in any order. Set to "none" for no borders. The default value is "top bottom", which shows top and bottom.
ExtendedAdvancedDataGrid
  
footerBorderThickness
Type: Number Format: Length CSS Inheritance: no
Bounding box thickness for the footer row. The default value is 1.
ExtendedAdvancedDataGrid
  
pagerBackgroundColor
Type: color CSS Inheritance: no
Color of the filter background. Defaults to white. Only for Classic - for ultimate use pagerColors
ExtendedAdvancedDataGrid
  
spinnerColors
Type: Array Format: Color
Colors for the spinners as an array. First element for the circle color and second for the spinner color
ExtendedAdvancedDataGrid
  
spinnerGridAlpha
Type: Number Format: Length
Background color of the grid when the spinner is active
ExtendedAdvancedDataGrid
  
spinnerLabelBackgroundColor
Type: uint Format: Color
Bacground color for the box in which the label is displayed
ExtendedAdvancedDataGrid
  
spinnerLabelColor
Type: uint Format: Color CSS Inheritance: yes
Label color for the spinner
ExtendedAdvancedDataGrid
  
spinnerLabelfontFamily
Type: String CSS Inheritance: yes
Label font family
ExtendedAdvancedDataGrid
  
spinnerLabelfontSize
Type: Number Format: Length CSS Inheritance: yes
Label font size
ExtendedAdvancedDataGrid
  
spinnerLabelfontStyle
Type: String CSS Inheritance: yes
Label font style
ExtendedAdvancedDataGrid
  
spinnerLabelfontThickness
Type: Number CSS Inheritance: yes
Label font thinkcness
ExtendedAdvancedDataGrid
  
spinnerLabelfontWeight
Type: String CSS Inheritance: yes
Label font weight
ExtendedAdvancedDataGrid
  
spinnerLabelShowBackground
Type: Boolean
A flag that controls whether or not to show the spinner.
ExtendedAdvancedDataGrid
  
spinnerRadius
Type: Number Format: Length
Spinner radius , default value is 10
ExtendedAdvancedDataGrid
  
spinnerThickness
Type: Number Format: Length
Spinner thickness , default value is 5
ExtendedAdvancedDataGrid
  
useModuleFactory
Type: Boolean
A flag that asks the grid to use its module factory when instantiating popups. This is required when you are using the control inside a module.
ExtendedAdvancedDataGrid
Property Detail
_columnWidthsDirtyproperty
public var _columnWidthsDirty:Boolean = false

_iPagerproperty 
protected var _iPager:IPager

autoLoadPreferencesproperty 
public var autoLoadPreferences:Boolean = true

clickBehaviorproperty 
clickBehavior:String

Grid can be setup to launch a popup when the user clicks or hovers. The popup class should have a public show method, that takes an object.This is the object bound to the row that triggers the click or hover event.


Implementation
    public function get clickBehavior():String
    public function set clickBehavior(value:String):void
clickParentDisplayObjectproperty 
clickParentDisplayObject:DisplayObject

The parent object to use while calling PopupManager.addPopUp. Defaults to the grid, but you can use any other DisplayObject.


Implementation
    public function get clickParentDisplayObject():DisplayObject
    public function set clickParentDisplayObject(value:DisplayObject):void
clickPopupClassproperty 
clickPopupClass:IFactory

The popup class to launch. Should have a public show method that takes an object. This is the object bound to the row that triggers the click or hover event.


Implementation
    public function get clickPopupClass():IFactory
    public function set clickPopupClass(value:IFactory):void
clickPopupHeightproperty 
clickPopupHeight:Number

The height of the popup to launch when the clickBehavior is set.


Implementation
    public function get clickPopupHeight():Number
    public function set clickPopupHeight(value:Number):void
clickPopupTitleproperty 
clickPopupTitle:String

The title of the popup to launch when the clickBehavior is set.


Implementation
    public function get clickPopupTitle():String
    public function set clickPopupTitle(value:String):void
clickPopupWidthproperty 
clickPopupWidth:Number

The width of the popup to launch when the clickBehavior is set.


Implementation
    public function get clickPopupWidth():Number
    public function set clickPopupWidth(value:Number):void
collectionManipulatorFactoryproperty 
public var collectionManipulatorFactory:IFactory

The class that manages the collection filtering, paging and sorting. Needs to inherit from CollectionManipulator.

copyAllRowsMenuTextproperty 
public var copyAllRowsMenuText:String = Copy All Rows

Text for the Copy All Rows

copyCellMenuTextproperty 
public var copyCellMenuText:String = Copy Cell

Text for the Copy Cell Menu

copySelectedRowMenuTextproperty 
public var copySelectedRowMenuText:String = Copy Selected Row

Text for the Copy Selected Row

currentItemUnderMouseproperty 
currentItemUnderMouse:Object

This property can be used as the source for data binding.


Implementation
    public function get currentItemUnderMouse():Object
    public function set currentItemUnderMouse(value:Object):void
enableColumnWidthModeproperty 
public var enableColumnWidthMode:Boolean = true

Flag to use the columnWidthMode based column resizing. In cases where you are not using the column width mode property on any of the columns, set this to false. Defaults to true.

enableMultiplePreferencesproperty 
enableMultiplePreferences:Boolean

A Flag that will enable multiple named versions of preferences to be persisted. The UI will be modified to allow for this to happen. This is new functionality introduced in v2.9. The default renderers for the different popups can be retrieved from the 2.9 blog post.


Implementation
    public function get enableMultiplePreferences():Boolean
    public function set enableMultiplePreferences(value:Boolean):void
enablePagingproperty 
enablePaging:Boolean

A flag to indicate whether or not to enable paging functionality

This property can be used as the source for data binding.


Implementation
    public function get enablePaging():Boolean
    public function set enablePaging(value:Boolean):void
enablePreferencePersistenceproperty 
enablePreferencePersistence:Boolean

When set to true, causes the grid to look for settings stored previously in the local shared object store if preferencePersistenceMode='client' or dispatch an event requesting settings from the server in preferencePersistenceMode='server'

This property can be used as the source for data binding.


Implementation
    public function get enablePreferencePersistence():Boolean
    public function set enablePreferencePersistence(value:Boolean):void
excelOptionsproperty 
public var excelOptions:ExportOptions

The Export options object that is used to configure the excel export behavior - currently only supported in Ultimate

exportableColumnsproperty 
exportableColumns:Array  [read-only]

Returns a list of columns that have excludeFromExport=false (default)


Implementation
    public function get exportableColumns():Array
filterRowHeightproperty 
filterRowHeight:Number

The height of the filter row. If not set, defaults to the value of the rowHeight property


Implementation
    public function get filterRowHeight():Number
    public function set filterRowHeight(value:Number):void
filterVisibleproperty 
filterVisible:Boolean

If you have enableFilters set to true but want the filter row to not appear, you can set this value.


Implementation
    public function get filterVisible():Boolean
    public function set filterVisible(value:Boolean):void
footerRowHeightproperty 
footerRowHeight:Number

The height of the footer row. If not set, defaults to the value of the rowHeight property


Implementation
    public function get footerRowHeight():Number
    public function set footerRowHeight(value:Number):void
footerVisibleproperty 
footerVisible:Boolean

If you have enableFooters set to true but want the footer row to not appear, you can set this value.


Implementation
    public function get footerVisible():Boolean
    public function set footerVisible(value:Boolean):void
forcePagerRowproperty 
forcePagerRow:Boolean

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.


Implementation
    public function get forcePagerRow():Boolean
    public function set forcePagerRow(value:Boolean):void
groupedColumnsproperty 
groupedColumns:Array  [write-only] [override]

Override the base grouped columns


Implementation
    public function set groupedColumns(value:Array):void
hasGroupedColumnsproperty 
hasGroupedColumns:Boolean

Flag to set if column groupes exist


Implementation
    public function get hasGroupedColumns():Boolean
    public function set hasGroupedColumns(value:Boolean):void
headerSectionHeightproperty 
headerSectionHeight:Number  [read-only]


Implementation
    public function get headerSectionHeight():Number
nativeExcelExporterproperty 
nativeExcelExporter:Exporter

The default exporter in flexicious is a pure CSV exporter. This property lets you hook in a native excel exporter using a libary like as3xls. Just like Alive PDF, as3xls is not embedded in to the core flexicious library, instead it is distributed as a part of the sample. Just like for pdf, you hook up the AlivePdfPrinter, you use the nativeExcelExporter to hookup an implementation of the flexicious expoter that interfaces with the as3xls library to provide native excel export


Implementation
    public function get nativeExcelExporter():Exporter
    public function set nativeExcelExporter(value:Exporter):void
pageIndexproperty 
pageIndex:int

The current page index


Implementation
    public function get pageIndex():int
    public function set pageIndex(value:int):void
pagerproperty 
pager:IPager  [read-only]

Handle to the current IPager control.


Implementation
    public function get pager():IPager
pagerRendererproperty 
pagerRenderer:IFactory

A Class that implements com.flexicious.controls.interfaces.IPager. Defaults to a built in implementation


Implementation
    public function get pagerRenderer():IFactory
    public function set pagerRenderer(value:IFactory):void

See also

com.flexicious.grids.columns.footers.PagerControl.
com.flexicious.controls.interfaces.IPager.
pagerRowHeightproperty 
pagerRowHeight:Number

The height of the pager row. If not set, defaults to the value of the rowHeight property


Implementation
    public function get pagerRowHeight():Number
    public function set pagerRowHeight(value:Number):void
pagerVisibleproperty 
pagerVisible:Boolean

If you have enablePaging set to true but want the pager row to not appear, you can set this value.


Implementation
    public function get pagerVisible():Boolean
    public function set pagerVisible(value:Boolean):void
pageSizeproperty 
pageSize:int

The number of records to display per page

This property can be used as the source for data binding.


Implementation
    public function get pageSize():int
    public function set pageSize(value:int):void
pdfOptionsproperty 
public var pdfOptions:PrintOptions

The Print options object that is used to configure the pdf behavior - currently only supported in Ultimate

pdfPrinterproperty 
pdfPrinter:IPDFPrinter

A class that takes the PDF Pages as they are generated. This functionality was introduced in 2.9 to provide a responsive UI during the generation of the PDF. Previously, the print controller created image snapshots in memory, and handed them all to the pdf engine, which processed them individually by adding them to the display tree in one go. Instead, now, the step of the snapshot itself adds the image to the pdf doc and this whole thing runs inside a timer so the UI has an opportunity to update itself. First, you specify a class that implements IPDFPrinter as the pdfPrinter property. The AlivePdfPrinter is a sample implementation of IPDFPrinter. This class should expose the methods defined in the IPDFPrinter which are used as such: The beginDocument method is called when the Print controller is ready to send out the pages. For each page generated by the Print Controller, the addPage method is called. Once all pages are added to the doc, the endDocument method is called.


Implementation
    public function get pdfPrinter():IPDFPrinter
    public function set pdfPrinter(value:IPDFPrinter):void
popupFactoryExportOptionsproperty 
popupFactoryExportOptions:IFactory

The renderer that shows up when the user clicks on the Word or Excel button - currently only supported in Ultimate


Implementation
    public function get popupFactoryExportOptions():IFactory
    public function set popupFactoryExportOptions(value:IFactory):void
popupFactoryOpenSettingsPopupproperty 
popupFactoryOpenSettingsPopup:IFactory

The renderer that shows up when the user clicks on the Open Settings button - currently only supported in Ultimate


Implementation
    public function get popupFactoryOpenSettingsPopup():IFactory
    public function set popupFactoryOpenSettingsPopup(value:IFactory):void
popupFactoryPrintOptionsproperty 
popupFactoryPrintOptions:IFactory

The renderer that shows up when the user clicks on the Print or PDF button - currently only supported in Ultimate


Implementation
    public function get popupFactoryPrintOptions():IFactory
    public function set popupFactoryPrintOptions(value:IFactory):void
popupFactorySaveSettingsPopupproperty 
popupFactorySaveSettingsPopup:IFactory

The renderer that shows up when the user clicks on the Save Settings button - currently only supported in Ultimate


Implementation
    public function get popupFactorySaveSettingsPopup():IFactory
    public function set popupFactorySaveSettingsPopup(value:IFactory):void
popupFactorySettingsPopupproperty 
popupFactorySettingsPopup:IFactory

The renderer that shows up when the user clicks on the Settings button - currently only supported in Ultimate


Implementation
    public function get popupFactorySettingsPopup():IFactory
    public function set popupFactorySettingsPopup(value:IFactory):void
preferencePersistenceKeyproperty 
preferencePersistenceKey:String

String value that uniquely identifies this grid across the application. If you have multiple grids' with enablePreferencePersistence, and they happen to share the same value for the id field, e.g. id="grid1" they might overwrite each others' preferences. To combat this situation, we provide a property, which defaults to the id of the grid, but you can override to provide a globally unique key.


Implementation
    public function get preferencePersistenceKey():String
    public function set preferencePersistenceKey(value:String):void
preferencePersistenceModeproperty 
preferencePersistenceMode:String

String value "server" or "client". When this property is set to client(default), the grid uses a shared object on the client to store preference settings. When it is set to server, the grid fires an event, preferencesChanged, which contains a XML string representation of the preference values. This can then be persisted on the backend, tied to a specific user id.


Implementation
    public function get preferencePersistenceMode():String
    public function set preferencePersistenceMode(value:String):void
preferencesproperty 
preferences:String

Returns an XML representation of the preferences specified in the preferencesToPersist property and values being the actual values. When


Implementation
    public function get preferences():String
    public function set preferences(value:String):void
preferencesLoadedproperty 
preferencesLoaded:Boolean  [read-only]

Returns true if the load preferences has been called.


Implementation
    public function get preferencesLoaded():Boolean
preferencesSetproperty 
preferencesSet:Boolean

A flag to indicate that the preferences for this grid has been set. Used by the clear preferences button to enable or disable itself.


Implementation
    public function get preferencesSet():Boolean
    public function set preferencesSet(value:Boolean):void
preferencesToPersistproperty 
preferencesToPersist:String

A comma delimited string of the following values: columnOrder,columnVisiblity,columnWidth,filter,sort,verticalScroll,horizontalScroll Each represents a setting that can potentially be persisted.


Implementation
    public function get preferencesToPersist():String
    public function set preferencesToPersist(value:String):void
printableColumnsproperty 
printableColumns:Array  [read-only]

Returns a list of columns that have excludeFromPrint=false (default)


Implementation
    public function get printableColumns():Array
printComponentFactoryproperty 
public var printComponentFactory:IFactory

printOptionsproperty 
public var printOptions:PrintOptions

The Print options object that is used to configure the print behavior - currently only supported in Ultimate

selectAllStateproperty 
selectAllState:String

The state of the select all header checkbox.


Implementation
    public function get selectAllState():String
    public function set selectAllState(value:String):void
selectedKeyFieldproperty 
selectedKeyField:String

The property(attribute) of the type(class) of the objects contained within the collection bound to the dataProvider. Example, "employeeId" property would be the selectedKeyField of the class "Employee.as". This is then used by the selectedKeys and selectedObjects properties to return the appropriate collection.

This property can be used as the source for data binding.


Implementation
    public function get selectedKeyField():String
    public function set selectedKeyField(value:String):void
selectedKeysproperty 
selectedKeys:ArrayCollection  [read-only]

Gets the keys of the objects selected by the user when used in conjunction with the selectedKeyField object

This property can be used as the source for data binding.


Implementation
    public function get selectedKeys():ArrayCollection
selectedObjectsproperty 
selectedObjects:ArrayCollection  [read-only]

Gets the objects selected by the user when used in conjunction with the selectedKeyField object


Implementation
    public function get selectedObjects():ArrayCollection
settingsColumnsproperty 
settingsColumns:Array  [read-only]

Returns a list of columns that have excludeFromPrint=false (default)


Implementation
    public function get settingsColumns():Array
showSpinnerOnCreationCompleteproperty 
showSpinnerOnCreationComplete:Boolean


Implementation
    public function get showSpinnerOnCreationComplete():Boolean
    public function set showSpinnerOnCreationComplete(value:Boolean):void
spinnerproperty 
spinner:ISpinner


Implementation
    public function get spinner():ISpinner
    public function set spinner(value:ISpinner):void
spinnerFactoryproperty 
spinnerFactory:IFactory

Factory responsible for instantiating a new spinner. Defaults to com.flexicious.Spinner. Needs to implement com.flexicious.interfaces.ISpinner, and extend UIComponent


Implementation
    public function get spinnerFactory():IFactory
    public function set spinnerFactory(value:IFactory):void
spinnerLabelproperty 
spinnerLabel:String

The label of the spinner control, you can use styles to control the appearance.


Implementation
    public function get spinnerLabel():String
    public function set spinnerLabel(value:String):void
totalRecordsproperty 
totalRecords:int

The total number of records (needs to be set only in server mode, because there is no way for the grid to know how many records on the server match the filter criteria) In client mode, the count of the data provider is used instead.


Implementation
    public function get totalRecords():int
    public function set totalRecords(value:int):void
unLockedColumnsproperty 
unLockedColumns:Array  [read-only]

Returns columns x through columns.count, where x=lockedColumnCount


Implementation
    public function get unLockedColumns():Array
useCompactPreferencesproperty 
useCompactPreferences:Boolean

If set to true, uses the newer preference persistence scheme introduced in Flexicious 2.0, which stores the preferences as custom string as opposed to XML, making it a lot less verbose.


Implementation
    public function get useCompactPreferences():Boolean
    public function set useCompactPreferences(value:Boolean):void
useModuleFactoryproperty 
useModuleFactory:Boolean  [read-only]

Flag that indicates to use the module factory of the grid to show popups. Use this when you are using modules and your parent application is not under your control. Please note, you will still need to ensure that the parent application imports PopupManager. http://bugs.adobe.com/jira/browse/SDK-873


Implementation
    public function get useModuleFactory():Boolean
userSettingsOptionsFunctionproperty 
userSettingsOptionsFunction:Function

Hook for the client to plug in their own UserSettings. See the UserSettingsOptions class for details.


Implementation
    public function get userSettingsOptionsFunction():Function
    public function set userSettingsOptionsFunction(value:Function):void
wordOptionsproperty 
public var wordOptions:ExportOptions

The Export options object that is used to configure the word export behavior - currently only supported in Ultimate

Constructor Detail
ExtendedAdvancedDataGrid()Constructor
public function ExtendedAdvancedDataGrid()

Constructor Adds event listeners to manage runtime addition, removal and resizing of columns.

Method Detail
addContextMenuItem()method
public function addContextMenuItem(lbl:String, clickHandler:Function, separatorBefore:Boolean = false):void

Adds the specified context menu item to the context menu.

Parameters

lbl:String
 
clickHandler:Function
 
separatorBefore:Boolean (default = false)

addSort()method 
public function addSort(sortCol:String, isAscending:Boolean, sortCompareFunction:Function = null):void

Adds a default sort to the grid.

Parameters

sortCol:String
 
isAscending:Boolean
 
sortCompareFunction:Function (default = null)

addToSelection()method 
public function addToSelection(item:Object, bclearSelection:Boolean = true):void

Selects the given item.

Parameters

item:Object
 
bclearSelection:Boolean (default = true)

adjustListContent()method 
override protected function adjustListContent(unscaledWidth:Number = -1, unscaledHeight:Number = -1):void

In here, we make UI adjustments, basically reducing the space that the grid takes to accomodate the filter, pager and footer rows, if enabled.

Parameters

unscaledWidth:Number (default = -1)
 
unscaledHeight:Number (default = -1)

buildNoPagingDataProvider()method 
protected function buildNoPagingDataProvider(provider:Object, item:Object, childrenField:String):void

Parameters

provider:Object
 
item:Object
 
childrenField:String

clearCheckBoxSelection()method 
public function clearCheckBoxSelection():void

clearFilter()method 
public function clearFilter():void

Calls clear on all internal filter controls, resetting the state

clearPreferences()method 
public function clearPreferences():void

clearSelectedCheckBoxes()method 
public function clearSelectedCheckBoxes():void

Clears the checkbox selections when used in conjunction with SelectAllCheckBoxHeaderColumn see com.flexicious.grids.columns.SelectAllCheckBoxHeaderColumn

collectionChangeHandler()method 
override protected function collectionChangeHandler(event:Event):void

Parameters

event:Event

commitProperties()method 
override protected function commitProperties():void

During the commit phase, we inspect the changed properties and add/remove controls accordingly.

createChildren()method 
override protected function createChildren():void

Override the createChildren method, and: If filters are enabled, add the filter row If footers are enabled, add the footer row If the pager is enabled, create a pager using the pagerRenderer property If the copy items are enabled, add the context menu items to copy

createCollectionManipulator()method 
public function createCollectionManipulator():CollectionManipulator

Returns
CollectionManipulator
createItemEditor()method 
override public function createItemEditor(colIndex:int, rowIndex:int):void

Parameters

colIndex:int
 
rowIndex:int

createMenuItems()method 
protected function createMenuItems():void

createPopup()method 
public function createPopup(popupData:Object):Object

Creates the popup.

Parameters

popupData:Object

Returns
Object
createPrintComponentFactory()method 
public function createPrintComponentFactory():IFactory

Gets the class responsible for handling the PrintUI should be a IPrintDataGrid

Returns
IFactory
defaultUseSettingsOptionsFunction()method 
protected function defaultUseSettingsOptionsFunction():UserSettingsOptions

returns UserSettingsOptions.create(this);

Returns
UserSettingsOptions
ensureFocusRect()method 
protected function ensureFocusRect():void

getAutoLoadPreferences()method 
public function getAutoLoadPreferences():Boolean

By default, when the grid's creation complete event is dispatched, the grid will go in and load the saved preference. This works well in most cases, but in some cases, where the data needed to build selection comboboxes (for filters) is built from the dataprovider, it makes sense to wait until the dataprovider is loaded to parse and set the preferences, otherwise the grid will end up ignoring saved preferences for filters that have dropdown based UI. In this case set autoLoadPreferences to true, and manually call loadPreferences when the data is received from the server and the dataprovider is set. grid:FlexDataGrid autoLoadPreferences=”false” And then, when you set the dataprovider: dgReport.dataProvider=dp; if(!dgReport.preferencesLoaded){ dgReport.loadPreferences(); }

Returns
Boolean
getCurrentPreferenceInfo()method 
public function getCurrentPreferenceInfo():PreferenceInfo

When enableMultiplePreferences = true, this represents the currently applied preference

Returns
PreferenceInfo
getDistinctValuesForColumn()method 
public function getDistinctValuesForColumn(dataField:String):ArrayCollection

Parameters

dataField:String

Returns
ArrayCollection
getExportableColumns()method 
public function getExportableColumns(options:ExportOptions):Array

Parameters

options:ExportOptions

Returns
Array
getFilterArguments()method 
public function getFilterArguments():ArrayCollection

Returns
ArrayCollection
getFilterColumn()method 
public function getFilterColumn(searchField:String):Object

Given a field to search for, return the column that has it's searchField set to the provided value.

Parameters

searchField:String — The field to search for

Returns
Object — The column that has its search field set to the specified searchField
getFilterValue()method 
public function getFilterValue(column:String):*

Parameters

column:String

Returns
*
getFilterValueForPreferences()method 
public function getFilterValueForPreferences(column:String):*

Parameters

column:String

Returns
*
getFilterX()method 
public function getFilterX(renderer:IFilterControl):Number

Used by filter to identify where relative position for each control for tabbing

Parameters

renderer:IFilterControl

Returns
Number
getGridPreferencesInfo()method 
public function getGridPreferencesInfo():GridPreferencesInfo

When enableMultiplePreferences = true, this represents a list of all preferences saved for this grid.

Returns
GridPreferencesInfo
getLastItemUnderMouse()method 
public function getLastItemUnderMouse():Object

Gets the item that was under the mouse last

Returns
Object
getPeristenceKey()method 
protected function getPeristenceKey():String

Returns
String
getPrintableColumns()method 
public function getPrintableColumns(options:PrintOptions):Array

Parameters

options:PrintOptions

Returns
Array
getUserSettingsController()method 
public function getUserSettingsController():UserSettingsController

Returns
UserSettingsController
hideSpinner()method 
public function hideSpinner():void

Removes the spinner and sets the listContent.alpha back to 1

initializeGrid()method 
protected function initializeGrid():void

invalidateDisplayList()method 
override public function invalidateDisplayList():void

Need to invalidte our children when we invalidate.

invalidateList()method 
override public function invalidateList():void

keyDownHandler()method 
override protected function keyDownHandler(event:KeyboardEvent):void

Parameters

event:KeyboardEvent

keyUpOrDown()method 
public function keyUpOrDown(keyCode:uint):void

From the filter row, if the user clicks up or down arrow, we pass control to the datagrid to update the selection accordingly.

Parameters

keyCode:uint

loadPreferences()method 
public function loadPreferences():void

Loads preference values from the Shared object, called automatically in preferencePersistenceMode=client. In server mode, you can directly set the preferences property to the string XML value persisted earlier.

mouseOverHandler()method 
override protected function mouseOverHandler(event:MouseEvent):void

Parameters

event:MouseEvent

onCellContextMenuItemClick()method 
protected function onCellContextMenuItemClick(event:ContextMenuEvent):void

Method to handle the click for the copy cell menu item Copies the current cell in tab delimited format into the clipboard

Parameters

event:ContextMenuEvent

onCollectionChange()method 
protected function onCollectionChange(event:CollectionEvent):void

We just pass on this event for our callers (this is no longer used, it was used for lazy loading.

Parameters

event:CollectionEvent

onContextMenuShown()method 
protected function onContextMenuShown(event:ContextMenuEvent):void

Parameters

event:ContextMenuEvent

onItemFocusIn()method 
protected function onItemFocusIn(event:AdvancedDataGridEvent):void

If we add anything above list content, the halo rectangle around the focus objects does not account for that. So in this function we move the focus rectangle accordingly.

Parameters

event:AdvancedDataGridEvent

onItemRollover()method 
protected function onItemRollover(event:ListEvent):void

For popup support, we keep track of what the user is hovering over.

Parameters

event:ListEvent

onRowContextMenuItemClick()method 
protected function onRowContextMenuItemClick(event:ContextMenuEvent):void

Adds the copy menu

Parameters

event:ContextMenuEvent

onTableContextMenuItemClick()method 
protected function onTableContextMenuItemClick(event:ContextMenuEvent):void

Method to handle the click for the copy table menu item Copies the current page in tab delimited format into the clipboard

Parameters

event:ContextMenuEvent

pauseKeyboardListeners()method 
public function pauseKeyboardListeners(filterRenderer:Object):void

Not applicable to classic, only used by Ultimate.

Parameters

filterRenderer:Object

persistPreferences()method 
public function persistPreferences(name:String = Default, isDefault:Boolean = false):void

Persists the preferences as Shared Objects when preferencePersistenceMode=client or dispatches an event with the preference information when preferencePersistenceMode=server

Parameters

name:String (default = Default)
 
isDefault:Boolean (default = false)

processFilter()method 
public function processFilter():void

If you want to control when the filter runs, set the filterTriggerEvent="none" on each of the columns, and call this function to trigger the filter

processSort()method 
public function processSort(sorts:ArrayCollection):void

Used by state persistence to load sort settings that were persisted previously.

Parameters

sorts:ArrayCollection

recreateNonFilteredDataProvider()method 
public function recreateNonFilteredDataProvider():void

The non filtered dataprovider is used in various places including: 1) The combobox filters use these to create a list of options to search from 2) The footer operations use them to apply formulas to the entire collection as opposed to whats on the current page 3) The print functionality uses them to calculate footer and header totals If the data provider changes as a result of your code, you should call this method before calling refreshLayout, in order to show the correct data.

redrawHeaderAndFooter()method 
protected function redrawHeaderAndFooter(event:Event):void

Parameters

event:Event

refreshLayout()method 
public function refreshLayout():void

Resets the position of each of the filter controls, the position, height and width of the filter and footer container rows, as well as the pager control This is done automatically when the columns are resized, or the list changes, or the grid is resized. But this method may be used from the calling code if required.

removeContextMenuItem()method 
public function removeContextMenuItem(lbl:String):void

Removes the specified context menu item

Parameters

lbl:String

selectAllCheckBoxes()method 
protected function selectAllCheckBoxes():void

setColumnWidthsUsingWidthMode()method 
public function setColumnWidthsUsingWidthMode(force:Boolean = false):void

Recalculates column widths on basis of columnWidthMode. This method changes the widths only only if user has not persisted preferences or the force parameter is true.

Parameters

force:Boolean (default = false)

setContextMenuEnableDisable()method 
public function setContextMenuEnableDisable(lbl:String, enabled:Boolean):Boolean

Sets the enabled/disabled flag on the specified context menu item.

Parameters

lbl:String
 
enabled:Boolean

Returns
Boolean
setContextMenuEnableVisible()method 
public function setContextMenuEnableVisible(lbl:String, visible:Boolean):Boolean

Sets the visible flag on the specified context menu item.

Parameters

lbl:String
 
visible:Boolean

Returns
Boolean
setCurrentPreferenceInfo()method 
public function setCurrentPreferenceInfo(val:PreferenceInfo, applyPreferences:Boolean = true):void

When enableMultiplePreferences = true, applies the given preference as the current preference.

Parameters

val:PreferenceInfo
 
applyPreferences:Boolean (default = true)

setFilterFocus()method 
public function setFilterFocus(fld:String):Boolean

Parameters

fld:String — The string to match the searchField property of the filter control with.

Returns
Boolean — True if focus was set, false if otherwise. Focus may not be set if the given search field does not exist, or if the filter control for the given search field does not implement IFocusManagerComponent.
setFilterValue()method 
public function setFilterValue(column:String, value:Object, triggerEvent:Boolean = true):void

Parameters

column:String
 
value:Object
 
triggerEvent:Boolean (default = true)

setFilterValueForPreferences()method 
public function setFilterValueForPreferences(column:String, value:Object, triggerEvent:Boolean = true):void

Parameters

column:String
 
value:Object
 
triggerEvent:Boolean (default = true)

setFocusOnNextFocusableFilterControl()method 
public function setFocusOnNextFocusableFilterControl():Boolean

Sets the focus on the next focusable filter control, starting at column index 0.

Returns
Boolean
setGridPreferencesInfo()method 
public function setGridPreferencesInfo(val:GridPreferencesInfo, applyPreferences:Boolean = true):void

Sets the multiple preferences array. On basis of the applyPreferences parameter, loops through the preferences and sets the preferences value to the first preference where isDefault=true.

Parameters

val:GridPreferencesInfo
 
applyPreferences:Boolean (default = true)

setPreferences()method 
protected function setPreferences(arrayCollection:ArrayCollection):void

Takes an array collection of preferences and applies them to the grid.

Parameters

arrayCollection:ArrayCollection

showPopup()method 
public function showPopup(popupData:Object):Object

Launches the actual popup.

Parameters

popupData:Object

Returns
Object
showSpinner()method 
public function showSpinner():void

Shows the spinner with default values defined below: Label: "Loading please wait" X Position : center X of the grid Y Position : center Y of the grid Grid Alpa when the spinner is active : 0.3 Spinner appearance can be modified using styles .

showToaster()method 
override public function showToaster(message:String, toasterPosition:String = BOTTOM_RIGHT, toasterRenderer:IFactory = null, animationDuration:Number = 1000, visibleDuration:Number = 5000, moveAnimate:Boolean = true, fadeAnimate:Boolean = true):void

Parameters

message:String
 
toasterPosition:String (default = BOTTOM_RIGHT)
 
toasterRenderer:IFactory (default = null)
 
animationDuration:Number (default = 1000)
 
visibleDuration:Number (default = 5000)
 
moveAnimate:Boolean (default = true)
 
fadeAnimate:Boolean (default = true)

sortHandler()method 
override protected function sortHandler(event:AdvancedDataGridEvent):void

Parameters

event:AdvancedDataGridEvent

Event Detail
afterExport Event
Event Object Type: com.flexicious.export.ExportEvent

Dispatched when the grid is finished exporting. At this point, the textWritten variable of the dispatched event is available to you, to customize the generated text if you need to.

afterPrint Event  
Event Object Type: com.flexicious.print.PrintPreviewEvent

Dispatched right after a grid has printed. Contains a handle to the printOptions object that contains both the grid being printed extendedDataGrid - (IExtendedDataGrid) and printDataGrid (IPrintDatagrid). You can use it to make modifications to the grid being printed.

beforeExport Event  
Event Object Type: com.flexicious.export.ExportEvent

Dispatched when the grid is about to be exported

beforePrint Event  
Event Object Type: com.flexicious.print.PrintPreviewEvent

Dispatched right before a grid is about to print. Contains a handle to the printOptions object that contains both the grid being printed extendedDataGrid - (IExtendedDataGrid) and printDataGrid (IPrintDatagrid). You can use it to make modifications to the grid being printed.

clearPreferences Event  
Event Object Type: com.flexicious.grids.events.PreferencePersistenceEvent

Fired when the grid needs to clear its preferences.

enableFilterChanged Event  

Fired when the enableFilters Flag changes

enableFootersChanged Event  

Fired when the enableFooters Flag changes

enablePagingChanged Event  

Fired when the enablePaging Flag changes

enablePreferencePersistenceChanged Event  

Fired when the enablePreferencePersistence Flag changes

filterComplete Event  

Fired when the filter is applied. Only applicable in filterPageSortMode=client.

filterPageSortChange Event  
Event Object Type: com.flexicious.grids.events.FilterPageSortChangeEvent

Fired when the grid's page, sort or filter state changes.

loadPreferences Event  
Event Object Type: com.flexicious.grids.events.PreferencePersistenceEvent

Fired In preferencePersistenceMode=server , when the grid needs to load its preferences. Fired In preferencePersistenceMode=client , when the grid has successfully loaded preferences.

pageSizeChanged Event  

Fired when the Page Size changes

persistPreferences Event  
Event Object Type: com.flexicious.grids.events.PreferencePersistenceEvent

Fired when the grid needs to persist its preferences.

preferencesLoading Event  
Event Object Type: com.flexicious.grids.events.PreferencePersistenceEvent

Fired right before preferences are being loaded and applied.

printExportDataRequest Event  
Event Object Type: com.flexicious.grids.events.PrintExportDataRequestEvent

Fired only in server mode, when the grid needs to print or export more data than is currently loaded in memory.

selectAllChanged Event  

Fired when the select all checkbox is changed

selectedKeysChanged Event  

Fired when the checkbox selection changes