X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.grid.GridView.html diff --git a/docs/output/Ext.grid.GridView.html b/docs/output/Ext.grid.GridView.html index 2c3fc107..e1e365fd 100644 --- a/docs/output/Ext.grid.GridView.html +++ b/docs/output/Ext.grid.GridView.html @@ -1,10 +1,12 @@ -
Observable GridView
Package: | Ext.grid |
Defined In: | GridView.js |
Class: | GridView |
Subclasses: | GroupingView |
Extends: | Observable |
This class encapsulates the user interface of an Ext.grid.GridPanel. +
Observable + GridView
Package: | Ext.grid |
Defined In: | GridView.js |
Class: | GridView |
Subclasses: | GroupingView, PivotGridView |
Extends: | Observable |
This class encapsulates the user interface of an Ext.grid.GridPanel. Methods of this class may be used to access user interface elements to enable special display effects. Do not change the DOM structure of the user interface.
This class does not provide ways to manipulate the underlying data. The data model of a Grid is held in an Ext.data.Store.
Config Options | Defined By | |
---|---|---|
autoFill : Boolean Defaults to false. Specify true to have the column widths re-proportioned
-when the grid is initially rendered. The ... Defaults to false. Specify true to have the column widths re-proportioned
-when the grid is initially rendered. The
+when the grid is initially rendered. The
+... Defaults to false. Specify true to have the column widths re-proportioned
+when the grid is initially rendered. The
initially configured width of each column will be adjusted
to fit the grid width and prevent horizontal scrolling. If columns are later resized (manually
or programmatically), the other columns in the grid will not be resized to fit the grid width.
@@ -15,13 +17,17 @@ are available (defaults to ''). This value will be used to update the this.mainBody.update('<div class="x-grid-empty">' + this.emptyText + '</div>'); | GridView | |
enableRowBody : Boolean True to add a second TR element per row that can be used to provide a row body
that spans beneath the data row. Use ... True to add a second TR element per row that can be used to provide a row body
that spans beneath the data row. Use the getRowClass method's rowParams config to customize the row body. | GridView | |
forceFit : Boolean Defaults to false. Specify true to have the column widths re-proportioned
-at all times. The initially configured wi... Defaults to false. Specify true to have the column widths re-proportioned
-at all times. The initially configured width of each
+at all times.
+The initially configured wid... Defaults to false. Specify true to have the column widths re-proportioned +at all times. +The initially configured width of each column will be adjusted to fit the grid width and prevent horizontal scrolling. If columns are later resized (manually or programmatically), the other columns in the grid will be resized -to fit the grid width. See autoFill also. | GridView | |
headersDisabled : Boolean True to disable the grid column headers (defaults to false).
+to fit the grid width.
+ Columns which are configured with See autoFill. | GridView | |
headerMenuOpenCls : String The CSS class to add to the header cell when its menu is visible. Defaults to 'x-grid3-hd-menu-open' | GridView | |
headersDisabled : Boolean True to disable the grid column headers (defaults to false).
Use the ColumnModel menuDisabled
-config to disable the ... True to disable the grid column headers (defaults to false).
+config to disable the m... True to disable the grid column headers (defaults to false).
Use the ColumnModel menuDisabled
config to disable the menu for individual columns. While this config is true the
following will be disabled:
| Observable | |
rowBodySelector : String The selector used to find row bodies internally (defaults to 'div.x-grid3-row') | GridView | |
rowBodySelectorDepth : Number The number of levels to search for row bodies in event delegation (defaults to 10) | GridView | |
rowSelector : String The selector used to find rows internally (defaults to 'div.x-grid3-row') | GridView | |
rowSelectorDepth : Number The number of levels to search for rows in event delegation (defaults to 10) | GridView | |
scrollOffset : Number The amount of space to reserve for the vertical scrollbar
+}); | Observable | |
markDirty : Boolean True to show the dirty cell indicator when a cell has been modified. Defaults to true. | GridView | |
rowBodySelector : String The selector used to find row bodies internally (defaults to 'div.x-grid3-row') | GridView | |
rowBodySelectorDepth : Number The number of levels to search for row bodies in event delegation (defaults to 10) | GridView | |
rowOverCls : String The CSS class added to each row when it is hovered over. Defaults to 'x-grid3-row-over' | GridView | |
rowSelector : String The selector used to find rows internally (defaults to 'div.x-grid3-row') | GridView | |
rowSelectorDepth : Number The number of levels to search for rows in event delegation (defaults to 10) | GridView | |
scrollOffset : Number The amount of space to reserve for the vertical scrollbar
(defaults to undefined). If an explicit value isn't specifi... The amount of space to reserve for the vertical scrollbar
(defaults to undefined). If an explicit value isn't specified, this will be automatically
calculated. | GridView | |
selectedRowClass : String The CSS class applied to a selected row (defaults to 'x-grid3-row-selected'). An
@@ -93,14 +99,14 @@ Note that this only controls the row, and will not do anything for the text insi
facets (like text) use something like:
| GridView | |
sortAscText : String The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending') | GridView | |
sortClasses : Array The CSS classes applied to a header when it is sorted. (defaults to ['sort-asc', 'sort-desc']) | GridView | |
sortDescText : String The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending') | GridView |
Property | Defined By | |
---|---|---|
dragZone : Ext.grid.GridDragZone A customized implementation of a DragZone which provides default implementations
+ } | GridView | |
sortAscText : String The text displayed in the 'Sort Ascending' menu item (defaults to 'Sort Ascending') | GridView | |
sortClasses : Array The CSS classes applied to a header when it is sorted. (defaults to ['sort-asc', 'sort-desc']) | GridView | |
sortDescText : String The text displayed in the 'Sort Descending' menu item (defaults to 'Sort Descending') | GridView |
Property | Defined By | |
---|---|---|
Ext.Template : masterTpl The master template to use when rendering the GridView. Has a default template | GridView | |
bodyTpl : Ext.Template The template to use when rendering the body. Has a default template | GridView | |
cellTpl : Ext.Template The template to use to render each cell. Has a default template | GridView | |
dragZone : Ext.grid.GridDragZone A customized implementation of a DragZone which provides default implementations
of the template methods of DragZone ... A customized implementation of a DragZone which provides default implementations of the template methods of DragZone to enable dragging of the selected rows of a GridPanel. See Ext.grid.GridDragZone for details. This will only be present:
| GridView | |
mainBody : Ext.Element Read-only. The GridView's body Element which encapsulates all rows in the Grid.
+ | GridView | |
headerTpl : Ext.Template The template to use when rendering headers. Has a default template | GridView | |
mainBody : Ext.Element Read-only. The GridView's body Element which encapsulates all rows in the Grid.
This Element is only available after ... Read-only. The GridView's body Element which encapsulates all rows in the Grid.
This Element is only available after the GridPanel has been rendered. | GridView |
Method | Defined By | |
---|---|---|
GridView( Object config )
Parameters:
| GridView | |
addEvents( Object|String o , string Optional. )
@@ -160,38 +166,38 @@ Or a shorthand syntax:scope: this });Returns:
| Observable | |
enableBubble( String/Array events )
:
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
-this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
- This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to -access the required target more quickly. -Example:
| Observable | |
findCellIndex( HTMLElement el )
:
NumberReturn the index of the grid column which contains the passed HTMLElement.
@@ -203,7 +209,7 @@ See also Return the HtmlElement representing the grid row body which contains the passed element. Return the HtmlElement representing the grid row body which contains the passed element. Parameters:
| GridView | |
findRowIndex( HTMLElement el )
:
NumberReturn the index of the grid row which contains the passed HTMLElement.
-See also findCellIndex Return the index of the grid row which contains the passed HTMLElement. +See also findCellIndexReturn the index of the grid row which contains the passed HTMLElement.
See also findCellIndex Parameters:
| GridView | |
fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
@@ -215,7 +221,9 @@ by calling Focuses the specified row. Focuses the specified row. Parameters:
| GridView | |
getCell( Number row , Number col )
:
- HtmlElementReturns the grid's <td> HtmlElement at the specified coordinates. Returns the grid's <td> HtmlElement at the specified coordinates. Parameters:
| GridView | |
getHeaderCell( Number index )
+ HtmlElementReturns the grid's <td> HtmlElement at the specified coordinates. Returns the grid's <td> HtmlElement at the specified coordinates. Parameters:
| GridView | |
getGridInnerWidth()
+ :
+ Number Returns the total internal width available to the grid, taking the scrollbar into account Returns the total internal width available to the grid, taking the scrollbar into account Parameters:
| GridView | |
getHeaderCell( Number index )
:
HtmlElementReturn the <td> HtmlElement which represents the Grid's header cell for the specified column index. Return the <td> HtmlElement which represents the Grid's header cell for the specified column index. Parameters:
| GridView | |
getRow( Number index )
:
@@ -250,7 +258,11 @@ The following property will be passed in, and may be appended to:
store : StoreThe Ext.data.Store this grid is bound to
| GridView | |
hasListener( String eventName )
+store : StoreThe Ext.data.Store this grid is bound to
| GridView | |
handleHdMenuClickDefault( Ext.menu.BaseItem item )
+ :
+ voidCalled by handleHdMenuClick if any button except a sort ASC/DESC button was clicked. The default implementation provi... Called by handleHdMenuClick if any button except a sort ASC/DESC button was clicked. The default implementation provides
+the column hide/show functionality based on the check state of the menu item. A different implementation can be provided
+if needed. Parameters:
| GridView | |
hasListener( String eventName )
:
BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |
on( String eventName , Function handler , [Object scope ], [Object options ] )
:
|