Packagecom.flexicious.lic
Classpublic class EadgBase
InheritanceEadgBase Inheritance mx.controls.AdvancedDataGrid
Subclasses ExtendedAdvancedDataGrid

Base class for the ExtendedAdvancedDataGrid. Please refer to the ExtendedDataGrid class for details

Default MXML PropertydataProvider



Public Properties
 PropertyDefined By
  additionalFilterArgumentsFunction : Function
In scenarios where there are detached filters, this function may be used to add on to the list of arguments before the filter is run.
EadgBase
  displayOrder : 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
  enableCopy : Boolean
A flag that indicates whether or not to show the context menu options to copy the cell,row, or table data
EadgBase
  enableDoubleClickEdit : Boolean
Enables or disables keyboard navigation for filters.
EadgBase
  enableExport : Boolean
A flag that may be used for binding purposes in the custom pager control.
EadgBase
  enableFilters : Boolean
A flag that indicates whether or not to show the filters
EadgBase
  enableFooters : Boolean
A flag that indicates whether or not to show the footer
EadgBase
  enableKeyboardNavigation : Boolean
Enables or disables keyboard navigation for filters.
EadgBase
  enablePrint : Boolean
A flag that may be used for binding purposes in the custom pager control.
EadgBase
  filterPageSortMode : String
The Filter/Page/Sort Mode.
EadgBase
  lockedColumns : Array
[read-only] Iterates through the locked columns, and returns them
EadgBase
  lockedColumnWidth : int
[read-only] Iterates through the locked columns, and adds up the width of these columns
EadgBase
  pagerPosition : String
The horizontal positioning of the contents of the pager.
EadgBase
  printExportData : Object
Gets the records to print or to export.
EadgBase
  printExportParameters : 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
  showSpinnerOnFilterPageSort : Boolean
A flag when set, automatically shows the spinner on creation complete and any filter page or sort operation.
EadgBase
  verticalScrollBarOffset : int
[read-only] If the vertical scrollbar is visible, returns the width of the vertical scroll bar.
EadgBase
  visibleColumns : Array
[read-only] Returns the visible columns from the unlocked header.
EadgBase
Protected Properties
 PropertyDefined By
  _customSortIndex : int = -1
EadgBase
  _displayOrder : String = pager,filter,body,footer
EadgBase
  _triggerEvent : Boolean = true
If we're setting filters programatically, we may not want the filterPageSortChange event to fire.
EadgBase
Public Methods
 MethodDefined By
  
Clears the sorts that are added via the add sort method.
EadgBase
  
createListData(text:String, dataField:String, columnIndex:int):BaseListData
Internal method so we can hook into the List Data mechanism
EadgBase
  
getRowText(item:Object):String
Converts an objects properties into tab delimited format
EadgBase
  
Runs the sorts that are added via the addSort method
EadgBase
  
showToaster(message:String, toasterPosition:String = BOTTOM_RIGHT, toasterRenderer:IFactory = null, animationDuration:Number = 1000, visibleDuration:Number = 5000, moveAnimate:Boolean = true, fadeAnimate:Boolean = true):void
EadgBase
Property Detail
_customSortIndexproperty
protected var _customSortIndex:int = -1

_displayOrderproperty 
protected var _displayOrder:String = pager,filter,body,footer

_triggerEventproperty 
protected var _triggerEvent:Boolean = true

If we're setting filters programatically, we may not want the filterPageSortChange event to fire. This flag, when set to true will prevent the event from being fired

additionalFilterArgumentsFunctionproperty 
additionalFilterArgumentsFunction:Function

In scenarios where there are detached filters, this function may be used to add on to the list of arguments before the filter is run. Should no parameters, and return an array collection of the filter expressions


Implementation
    public function get additionalFilterArgumentsFunction():Function
    public function set additionalFilterArgumentsFunction(value:Function):void
displayOrderproperty 
displayOrder: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. Please note: The way advanced data grid is structured, the header and body are one section, so the "header" is not a valid value for the list of displayOrder objects.


Implementation
    public function get displayOrder():String
    public function set displayOrder(value:String):void
enableCopyproperty 
enableCopy:Boolean

A flag that indicates whether or not to show the context menu options to copy the cell,row, or table data


Implementation
    public function get enableCopy():Boolean
    public function set enableCopy(value:Boolean):void
enableDoubleClickEditproperty 
enableDoubleClickEdit:Boolean

Enables or disables keyboard navigation for filters.


Implementation
    public function get enableDoubleClickEdit():Boolean
    public function set enableDoubleClickEdit(value:Boolean):void
enableExportproperty 
enableExport:Boolean

A flag that may be used for binding purposes in the custom pager control. This flag does not change any behavior. It defaults to true.

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


Implementation
    public function get enableExport():Boolean
    public function set enableExport(value:Boolean):void
enableFiltersproperty 
enableFilters:Boolean

A flag that indicates whether or not to show the filters

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


Implementation
    public function get enableFilters():Boolean
    public function set enableFilters(value:Boolean):void
enableFootersproperty 
enableFooters:Boolean

A flag that indicates whether or not to show the footer

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


Implementation
    public function get enableFooters():Boolean
    public function set enableFooters(value:Boolean):void
enableKeyboardNavigationproperty 
enableKeyboardNavigation:Boolean

Enables or disables keyboard navigation for filters.


Implementation
    public function get enableKeyboardNavigation():Boolean
    public function set enableKeyboardNavigation(value:Boolean):void
enablePrintproperty 
enablePrint:Boolean

A flag that may be used for binding purposes in the custom pager control. This flag does not change any behavior. It defaults to true.

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


Implementation
    public function get enablePrint():Boolean
    public function set enablePrint(value:Boolean):void
filterPageSortModeproperty 
filterPageSortMode:String

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.grids.events.FilterPageSortChangeEvent named filterPageSortChange that should be used to construct an appropriate query to be sent to the backend.

The default value is client.


Implementation
    public function get filterPageSortMode():String
    public function set filterPageSortMode(value:String):void

See also

lockedColumnsproperty 
lockedColumns:Array  [read-only]

Iterates through the locked columns, and returns them


Implementation
    public function get lockedColumns():Array
lockedColumnWidthproperty 
lockedColumnWidth:int  [read-only]

Iterates through the locked columns, and adds up the width of these columns


Implementation
    public function get lockedColumnWidth():int
pagerPositionproperty 
pagerPosition:String

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 owncom.flexicious.controls.interfaces.IPager, then needs to be handled by you.


Implementation
    public function get pagerPosition():String
    public function set pagerPosition(value:String):void

See also

com.flexicious.grids.columns.footers.PagerControl.
com.flexicious.controls.interfaces.IPager.
printExportDataproperty 
printExportData:Object

Gets the records to print or to export. Only applicable when the filterPageSortMode of the grid is set to server, and the user requests to print all pages or specific pages of data that are not currently loaded.


Implementation
    public function get printExportData():Object
    public function set printExportData(value:Object):void
printExportParametersproperty 
printExportParameters: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.


Implementation
    public function get printExportParameters():Object
    public function set printExportParameters(value:Object):void
showSpinnerOnFilterPageSortproperty 
showSpinnerOnFilterPageSort:Boolean

A flag when set, automatically shows the spinner on creation complete and any filter page or sort operation. Hides automatically on collection reset. Defaults to false. If you wish to manually control when the spinner appears, leave this as false, and call showSpinner and hideSpinner as required.


Implementation
    public function get showSpinnerOnFilterPageSort():Boolean
    public function set showSpinnerOnFilterPageSort(value:Boolean):void
verticalScrollBarOffsetproperty 
verticalScrollBarOffset:int  [read-only]

If the vertical scrollbar is visible, returns the width of the vertical scroll bar.


Implementation
    public function get verticalScrollBarOffset():int
visibleColumnsproperty 
visibleColumns:Array  [read-only]

Returns the visible columns from the unlocked header.


Implementation
    public function get visibleColumns():Array
Method Detail
clearCurrentSort()method
public function clearCurrentSort():void

Clears the sorts that are added via the add sort method. If run is specified, runs the actual sort.

createListData()method 
public function createListData(text:String, dataField:String, columnIndex:int):BaseListData

Internal method so we can hook into the List Data mechanism

Parameters

text:String — Text representation of the item data.
 
dataField:String — Name of the field or property in the data provider associated with the column.
 
columnIndex:int — The column index of the item in the columns for the DataGrid control.

Returns
BaseListData
getRowText()method 
public function getRowText(item:Object):String

Converts an objects properties into tab delimited format

Parameters

item:Object

Returns
String
runCurrentSort()method 
public function runCurrentSort():void

Runs the sorts that are added via the addSort method

showToaster()method 
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)