GridColumnModelListener
defines an interface for classes that wish to listen to
module:ct-grid/GridColumnModel
events.
Methods
on Apply Filters()
An event method that is called when the filters have been applied on the module:ct-grid/GridColumn
s within the
module:ct-grid/GridColumnModel
.
on Columns Added(pGrid Columns, nStart Index)
An event method that is called when a column has been added to the GridColumnModel
.
All GridColumn elements in the specified array are added in sequential order starting at the specified index.
Parameters:
Name | Type | Description |
---|---|---|
pGridColumns |
Array | An array of |
nStartIndex |
int | The start index at which the first column in the specified list was added. |
on Columns Removed(pGrid Columns, nStart Index)
An event method that is called when a column has been removed from to the module:ct-grid/GridColumnModel
.
All GridColumn elements in the specified array are removed in sequential order starting at the specified index.
Parameters:
Name | Type | Description |
---|---|---|
pGridColumns |
Array | An array of |
nStartIndex |
int | The start index at which the first column in the specified list was removed. |
on Filters Changed(oGrid Column)
An event method that is fired when a GridColumn
has had any of its filters changed.
Parameters:
Name | Type | Description |
---|---|---|
oGridColumn |
module:ct-grid |
The grid column instance where the event occurred. |
on Required Fields Changed(pFields)
An event method that is called when the fields required by all the module:ct-grid/GridColumn
s within the
module:ct-grid/GridColumnModel
change.
All module:ct-grid/GridColumn
elements in the specified array are removed in sequential order starting at the
specified index.
Parameters:
Name | Type | Description |
---|---|---|
pFields |
Array | An array of field names as strings that are required by the |
on Sort Column Changed()
An event method that is fired when the module:ct-grid/GridColumn
that will be used to sort the grid has changed.
on Width Changed(oGrid Column)
An event method that is called when a column's width has been changed.
Parameters:
Name | Type | Description |
---|---|---|
oGridColumn |
module:ct-grid |
The grid column where the event occurred. |