Roo.util.Observable Roo.grid.Grid Roo.grid.EditorGrid
Package: | Roo.grid |
Defined In: | Roo/grid/EditorGrid.js. |
Class: | EditorGrid |
Subclasses: | Roo.grid.PropertyGrid |
Extends: | Roo.grid.Grid |
Options | Defined By | |
---|---|---|
autoExpandColumn : String
The id (or dataIndex) of a column in this grid that should expand to fill unused space.
The id (or dataIndex) of a column in this grid that should expand to fill unused space. This id can not be 0. Default is false.
|
Roo.grid.Grid | |
autoExpandMax : Number
The maximum width the autoExpandColumn can have (if enabled).
The maximum width the autoExpandColumn can have (if enabled). Default is 1000.
|
Roo.grid.Grid | |
autoExpandMin : Number
The minimum width the autoExpandColumn can have (if enabled).
The minimum width the autoExpandColumn can have (if enabled).
Default is 50. |
Roo.grid.Grid | |
autoHeight : Boolean
True to fit the height of the grid container to the height of the data.
True to fit the height of the grid container to the height of the data. Default is false.
|
Roo.grid.Grid | |
autoSizeColumns : Boolean
True to automatically resize the columns to fit their content
on initial render.
True to automatically resize the columns to fit their content
on initial render. It is more efficient to explicitly size the columns through the ColumnModel's {link Roo.grid.ColumnModelwidth} config option. Default is false. |
Roo.grid.Grid | |
autoSizeHeaders : Boolean
True to measure headers with column data when auto sizing columns.
True to measure headers with column data when auto sizing columns. Default is true.
|
Roo.grid.Grid | |
autoWidth : Boolean
True to set the grid's width to the default total width of the grid's columns instead
of a fixed width.
True to set the grid's width to the default total width of the grid's columns instead
of a fixed width. Default is false. |
Roo.grid.Grid | |
clicksToEdit : Number
The number of clicks on a cell required to display the cell's editor (defaults to 2)
The number of clicks on a cell required to display the cell's editor (defaults to 2)
|
Roo.grid.EditorGrid | |
ddGroup : String
- drag drop group.
- drag drop group.
|
Roo.grid.Grid | |
dropTarget : Roo.dd.DropTarget
An {link Roo.dd.DropTarget} config
An {link Roo.dd.DropTarget} config
|
Roo.grid.Grid | |
enableColumnHide : Boolean
True to enable hiding of columns with the header context menu.
True to enable hiding of columns with the header context menu. Default is true.
|
Roo.grid.Grid | |
enableColumnMove : Boolean
True to enable drag and drop reorder of columns.
True to enable drag and drop reorder of columns. Default is true.
|
Roo.grid.Grid | |
enableDrag : Boolean
True to enable drag of rows.
True to enable drag of rows. Default is false. (double check if this is needed?)
|
Roo.grid.Grid | |
enableDragDrop : Boolean
True to enable drag and drop of rows.
True to enable drag and drop of rows. Default is false.
|
Roo.grid.Grid | |
enableRowHeightSync : Boolean
True to manually sync row heights across locked and not locked rows.
True to manually sync row heights across locked and not locked rows. Default is false.
|
Roo.grid.Grid | |
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 | |
loadMask : Object
An {link Roo.LoadMask} config or true to mask the grid while loading.
An {link Roo.LoadMask} config or true to mask the grid while loading. Default is false.
|
Roo.grid.Grid | |
maxHeight : Number
Sets the maximum height of the grid - ignored if autoHeight is not on.
Sets the maximum height of the grid - ignored if autoHeight is not on.
|
Roo.grid.Grid | |
maxRowsToMeasure : Boolean
If autoSizeColumns is on, maxRowsToMeasure can be used to limit the number of
rows measured to get a columns size.
If autoSizeColumns is on, maxRowsToMeasure can be used to limit the number of
rows measured to get a columns size. Default is 0 (all rows). |
Roo.grid.Grid | |
minColumnWidth : Number
The minimum width a column can be resized to.
The minimum width a column can be resized to. Default is 25.
|
Roo.grid.Grid | |
monitorWindowResize : Boolean
True to autoSize the grid when the window resizes.
True to autoSize the grid when the window resizes. Default is true.
|
Roo.grid.Grid | |
stripeRows : Boolean
True to stripe the rows.
True to stripe the rows. Default is true.
|
Roo.grid.Grid | |
trackMouseOver : Boolean
True to highlight rows when the mouse is over.
True to highlight rows when the mouse is over. Default is true.
|
Roo.grid.Grid | |
view : Object
The {link Roo.grid.GridView} used by the grid.
The {link Roo.grid.GridView} used by the grid. This can be set before a call to render().
|
Roo.grid.Grid |
Method | Defined By | |
---|---|---|
new Roo.grid.EditorGrid
(String/HTMLElement/Roo.Element container, Object dataSource, Object colModel)
Create a new Roo.grid.EditorGrid
Create a new Roo.grid.EditorGrid
|
||
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 | |
autoSize
()
Causes the grid to manually recalculate its dimensions.
Causes the grid to manually recalculate its dimensions. Generally this is done automatically,
but if manual update is required this method will initiate it. |
Roo.grid.Grid | |
destroy
(Boolean removeEl)
Destroy this grid.
Destroy this grid.
|
Roo.grid.Grid | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getColumnModel
()
:
ColumnModel
Returns the grid's ColumnModel.
Returns the grid's ColumnModel.
|
Roo.grid.Grid | |
getDataSource
()
:
DataSource
Returns the grid's DataSource.
Returns the grid's DataSource.
|
Roo.grid.Grid | |
getDragDropText
()
:
String
Called to get grid's drag proxy text, by default returns this.ddText.
Called to get grid's drag proxy text, by default returns this.ddText.
|
Roo.grid.EditorGrid | |
getGridEl
()
:
Element
Returns the grid's underlying element.
Returns the grid's underlying element.
|
Roo.grid.Grid | |
getSelectionModel
()
:
SelectionModel
Returns the grid's SelectionModel.
Returns the grid's SelectionModel.
|
Roo.grid.Grid | |
getView
()
:
GridView
Returns the grid's GridView object.
Returns the grid's GridView object.
|
Roo.grid.Grid | |
Roo.util.Observable | ||
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 | |
reconfigure
(Roo.data.Store dataSource, Roo.grid.ColumnModel The)
Reconfigures the grid to use a different Store and Column Model.
Reconfigures the grid to use a different Store and Column Model.
The View will be bound to the new objects and refreshed.
|
Roo.grid.Grid | |
Roo.util.Observable | ||
render
()
:
Roo.grid.Grid
Called once after all setup has been completed and the grid is ready to be rendered.
Called once after all setup has been completed and the grid is ready to be rendered.
|
Roo.grid.Grid | |
Roo.grid.EditorGrid | ||
stopEditing
()
Stops any active editing
Stops any active editing
|
Roo.grid.EditorGrid | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
afteredit (Object e)
Fires after a cell is edited.
Fires after a cell is edited.
|
Roo.grid.EditorGrid | |
beforeedit (Object e)
Fires before cell editing is triggered.
Fires before cell editing is triggered. The edit event object has the following properties
|
Roo.grid.EditorGrid | |
Roo.grid.Grid | ||
Fires when a cell is clicked
Fires when a cell is clicked
|
Roo.grid.Grid | |
Fires when a cell is right clicked
Fires when a cell is right clicked
|
Roo.grid.Grid | |
Fires when a cell is double clicked
Fires when a cell is double clicked
|
Roo.grid.Grid | |
click (Roo.EventObject e)
The raw click event for the entire grid.
The raw click event for the entire grid.
|
Roo.grid.Grid | |
Roo.grid.Grid | ||
Roo.grid.Grid | ||
contextmenu (Roo.EventObject e)
The raw contextmenu event for the entire grid.
The raw contextmenu event for the entire grid.
|
Roo.grid.Grid | |
dblclick (Roo.EventObject e)
The raw dblclick event for the entire grid.
The raw dblclick event for the entire grid.
|
Roo.grid.Grid | |
dragdrop (Grid this, Roo.GridDD dd, String targetId, event e)
Fires when dragged row(s) are dropped on a valid DD target
Fires when dragged row(s) are dropped on a valid DD target
|
Roo.grid.Grid | |
dragenter
Fires when the dragged row(s) first cross another DD target while being dragged (Grid this, Roo.GridDD dd, String targetId, event e)
|
Roo.grid.Grid | |
dragout (Grid this, Roo.GridDD dd, String targetId, event e)
Fires when the dragged row(s) leave another DD target while being dragged
Fires when the dragged row(s) leave another DD target while being dragged
|
Roo.grid.Grid | |
dragover (Grid this, Roo.GridDD dd, String targetId, event e)
Fires while row(s) are being dragged.
Fires while row(s) are being dragged. "targetId" is the id of the Yahoo.util.DD object the selected rows are being dragged over.
|
Roo.grid.Grid | |
enddrag (Grid this, Roo.GridDD dd, event e)
Fires when a drag operation is complete
Fires when a drag operation is complete
|
Roo.grid.Grid | |
headerclick (Grid this, Number columnIndex, Roo.EventObject e)
Fires when a header is clicked
Fires when a header is clicked
|
Roo.grid.Grid | |
headercontextmenu (Grid this, Number columnIndex, Roo.EventObject e)
Fires when a header is right clicked
Fires when a header is right clicked
|
Roo.grid.Grid | |
headerdblclick (Grid this, Number columnIndex, Roo.EventObject e)
Fires when a header cell is double clicked
Fires when a header cell is double clicked
|
Roo.grid.Grid | |
keydown (Roo.EventObject e)
The raw keydown event for the entire grid.
The raw keydown event for the entire grid.
|
Roo.grid.Grid | |
keypress (Roo.EventObject e)
The raw keypress event for the entire grid.
The raw keypress event for the entire grid.
|
Roo.grid.Grid | |
mousedown (Roo.EventObject e)
The raw mousedown event for the entire grid.
The raw mousedown event for the entire grid.
|
Roo.grid.Grid | |
mouseout (Roo.EventObject e)
The raw mouseout event for the entire grid.
The raw mouseout event for the entire grid.
|
Roo.grid.Grid | |
mouseover (Roo.EventObject e)
The raw mouseover event for the entire grid.
The raw mouseover event for the entire grid.
|
Roo.grid.Grid | |
mouseup (Roo.EventObject e)
The raw mouseup event for the entire grid.
The raw mouseup event for the entire grid.
|
Roo.grid.Grid | |
render (Grid grid)
Fires when the grid is rendered
Fires when the grid is rendered
|
Roo.grid.Grid | |
rowclass (GridView gridview, Object rowcfg)
Fires when a row is rendered, so you can change add a style to it.
Fires when a row is rendered, so you can change add a style to it.
|
Roo.grid.Grid | |
rowclick (Grid this, Number rowIndex, Roo.EventObject e)
Fires when a row is clicked
Fires when a row is clicked
|
Roo.grid.Grid | |
rowcontextmenu (Grid this, Number rowIndex, Roo.EventObject e)
Fires when a row is right clicked
Fires when a row is right clicked
|
Roo.grid.Grid | |
rowdblclick (Grid this, Number rowIndex, Roo.EventObject e)
Fires when a row is double clicked
Fires when a row is double clicked
|
Roo.grid.Grid | |
startdrag (Grid this, Roo.GridDD dd, event e)
Fires when row(s) start being dragged
Fires when row(s) start being dragged
|
Roo.grid.Grid | |
validateedit (Object e)
Fires after a cell is edited, but before the value is set in the record.
Fires after a cell is edited, but before the value is set in the record.
You can use this to modify the value being set in the field, Return false to cancel the change. The edit event object has the following properties
|
Roo.grid.EditorGrid |