Roo.util.Observable Roo.grid.AbstractSelectionModel Roo.grid.RowSelectionModel
Package: | Roo.grid |
Defined In: | Roo/grid/RowSelectionModel.js. |
Class: | RowSelectionModel |
Extends: | Roo.grid.AbstractSelectionModel |
Options | Defined By | |
---|---|---|
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
singleSelect : Boolean
True to allow selection of only one row at a time (defaults to false)
True to allow selection of only one row at a time (defaults to false)
|
Roo.grid.RowSelectionModel |
Method | Defined By | |
---|---|---|
new Roo.grid.RowSelectionModel
(Object config)
Create a new Roo.grid.RowSelectionModel
Create a new Roo.grid.RowSelectionModel
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
clearSelections
()
Clears all selections.
Clears all selections.
|
Roo.grid.RowSelectionModel | |
Roo.grid.RowSelectionModel | ||
deselectRow
(Number row)
Deselects a row.
Deselects a row.
|
Roo.grid.RowSelectionModel | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getCount
()
:
Number
Gets the number of selected rows.
Gets the number of selected rows.
|
Roo.grid.RowSelectionModel | |
getSelected
()
:
Record
Returns the first selected record.
Returns the first selected record.
|
Roo.grid.RowSelectionModel | |
getSelections
()
:
Array
Returns the selected records
Returns the selected records
|
Roo.grid.RowSelectionModel | |
Roo.util.Observable | ||
hasSelection
()
:
Boolean
Returns True if there is a selection.
Returns True if there is a selection.
|
Roo.grid.RowSelectionModel | |
Roo.grid.RowSelectionModel | ||
isLocked
()
:
Boolean
Returns true if the selections are locked.
Returns true if the selections are locked.
|
Roo.grid.AbstractSelectionModel | |
Roo.grid.RowSelectionModel | ||
lock
()
Locks the selections.
Locks the selections.
|
Roo.grid.AbstractSelectionModel | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
selectAll
()
Selects all rows.
Selects all rows.
|
Roo.grid.RowSelectionModel | |
selectFirstRow
()
Selects the first row in the grid.
Selects the first row in the grid.
|
Roo.grid.RowSelectionModel | |
selectLastRow
(Boolean keepExisting)
Select the last row.
Select the last row.
|
Roo.grid.RowSelectionModel | |
selectNext
(Boolean keepExisting)
Selects the row immediately following the last selected row.
Selects the row immediately following the last selected row.
|
Roo.grid.RowSelectionModel | |
selectPrevious
(Boolean keepExisting)
Selects the row that precedes the last selected row.
Selects the row that precedes the last selected row.
|
Roo.grid.RowSelectionModel | |
Roo.grid.RowSelectionModel | ||
Roo.grid.RowSelectionModel | ||
Roo.grid.RowSelectionModel | ||
Roo.grid.RowSelectionModel | ||
Roo.util.Observable | ||
unlock
()
Unlocks the selections.
Unlocks the selections.
|
Roo.grid.AbstractSelectionModel |
Event | Defined By | |
---|---|---|
afterselectionchange (SelectionModel this)
Fires after the selection changes (eg.
Fires after the selection changes (eg. by key press or clicking)
|
Roo.grid.RowSelectionModel | |
Roo.grid.RowSelectionModel | ||
rowdeselect (SelectionModel this, Number rowIndex)
Fires when a row is deselected.
Fires when a row is deselected.
|
Roo.grid.RowSelectionModel | |
rowselect (SelectionModel this, Number rowIndex, Roo.data.Record r)
Fires when a row is selected.
Fires when a row is selected.
|
Roo.grid.RowSelectionModel | |
selectionchange (SelectionModel this)
Fires when the selection changes
Fires when the selection changes
|
Roo.grid.RowSelectionModel |