projects/wms-framework/src/lib/models/controls/XamGridRowsManager.ts
A class representing the XamGrid RowsManager.
Properties |
|
Methods |
constructor(xamGrid: XamGridModel)
|
||||||
|
Creates a new instance of XamGridRowsManager.
Parameters :
|
| Private _grid |
Type : XamGridModel
|
|
Internal XamGrid reference. |
| Private _addNewRowBottom |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:55
|
|
Internal reference to the newly bottom top row |
| Private _addNewRowTop |
Type : AddNewRow
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:46
|
|
Internal reference to the newly added top row |
| Private _cachedRows |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:216
|
|
Cached collection of rows to avoid unnecesary functions executions. |
| Public _items |
Type : XamGridRow[]
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:192
|
|
Internal items collection. |
| Public _itemsSource |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:168
|
|
Internal itemsSource collection |
| Private _rowBaseCollection |
Type : RowBaseCollection
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:200
|
|
Internal RowBaseCollection. |
| Private _rows |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:208
|
|
Internal rows collection. |
| DataManager |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:97
|
|
DataManager |
| Public Level |
Type : number
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:176
|
|
Level property |
| Public ParentRow |
Type : any
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:184
|
|
Reference to the parent row. |
| Protected _columnLayout |
Type : ColumnLayout
|
|
Inherited from
RowsManagerBase
|
|
Defined in
RowsManagerBase:32
|
|
Internal ColumnLayout. |
| add | ||||||
add(item: any)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:241
|
||||||
|
Creates a new item.
Parameters :
Returns :
void
|
| AddItem | ||||||
AddItem(addedObject: XamGridRow)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:279
|
||||||
|
Adds new node to the collection
Parameters :
Returns :
void
|
| Clear |
Clear()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:255
|
|
Clears items.
Returns :
void
|
| CreateItem |
CreateItem()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:266
|
|
Creates a new item.
Returns :
XamGridRow
|
| Private fireItemsSourceChangeIfNotObservable | ||||||
fireItemsSourceChangeIfNotObservable(data: Iterable<any>)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:516
|
||||||
|
Explicitly fires a ColumnLayout change
Parameters :
Returns :
void
|
| GetDataItem |
GetDataItem(index: number, data: any)
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:379
|
|
Gets the row by index and stores the row in the cache
Returns :
XamGridRow
|
| getInternalData |
getInternalData()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:423
|
|
Gets the data to be used to populate the Rows information
Returns :
any
|
| GetRecord |
GetRecord(index: number, data: any)
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:412
|
|
Gets the record by index using the given data or retrieve the data from the grid
Returns :
any
|
| getValueFromItemsSource | ||||||
getValueFromItemsSource(index: number)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:453
|
||||||
|
Gets the value from the ItemSource based on its index
Parameters :
Returns :
any
|
| hasSortOrFilter |
hasSortOrFilter()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:439
|
|
Indicates if the grid has filters or sorted columns
Returns :
boolean
|
| InsertItem | |||||||||
InsertItem(index: number, insertedObject: XamGridRow)
|
|||||||||
|
Inherited from
RowsManager
|
|||||||||
|
Defined in
RowsManager:322
|
|||||||||
|
Inserts a new Item into the collection in the given index.
Parameters :
Returns :
void
|
| InvalidateData |
InvalidateData()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:147
|
|
Clears data
Returns :
void
|
| InvalidateRows | ||||||
InvalidateRows(unregister: boolean)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:155
|
||||||
|
Clears rows
Parameters :
Returns :
void
|
| OnItemsSourceChanged | ||||||
OnItemsSourceChanged(invalidateSelectionAndActivation: boolean)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:106
|
||||||
|
Callback function when the ItemsSource have changed
Parameters :
Returns :
void
|
| RemoveItem | ||||||
RemoveItem(removedObject: XamGridRow)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:290
|
||||||
|
Remove the given node of the collection
Parameters :
Returns :
boolean
|
| RemoveRange | ||||||
RemoveRange(itemsToRemove: IList<XamGridRow>)
|
||||||
|
Inherited from
RowsManager
|
||||||
|
Defined in
RowsManager:310
|
||||||
|
Remove the given list of items to remove
Parameters :
Returns :
void
|
| toArray |
toArray()
|
|
Inherited from
RowsManager
|
|
Defined in
RowsManager:470
|
|
Convert the XamGridRowCollection to a simple array.
Returns :
any[]
|
| UnhookDataManager | ||||||||||||
UnhookDataManager(clearChildRows: boolean, clearSelection: boolean, clearGroupBy: boolean)
|
||||||||||||
|
Inherited from
RowsManager
|
||||||||||||
|
Defined in
RowsManager:130
|
||||||||||||
|
Refresh data manager property
Parameters :
Returns :
void
|
import { RowsManager } from './RowsManager';
import { ColumnLayout } from './ColumnLayout';
import { XamGridModel } from './XamgridModel';
/**
* A class representing the XamGrid RowsManager.
*
* @export
* @class XamGridRowsManager
* @extends {RowsManager}
* @wType Infragistics.Controls.Grids.RowsManager
*/
export class XamGridRowsManager extends RowsManager {
/**
* Internal XamGrid reference.
*
* @private
* @type {XamGridModel}
* @memberof {XamGridRowsManager}
*/
private _grid: XamGridModel;
/**
* Creates a new instance of XamGridRowsManager.
*
* @param {XamGridModel} xamGrid
* @memberof {XamGridRowsManager}
*/
constructor(xamGrid: XamGridModel) {
const columnLayout = new ColumnLayout(xamGrid);
super(0, columnLayout, null);
this._grid = xamGrid;
}
}