Class Ext.grid.GridView
Package: | Ext.grid |
Class: | GridView |
Extends: | AbstractGridView |
Defined In: | GridView.js |
The default GridView implementation
属性
-
方法
-
事件
公共属性
此类没有公共属性。
公共方法
|
GridView(Object config ) |
GridView |
|
|
autoSizeColumn(Number colIndex , Boolean forceMinSize ) : void |
GridView |
Autofit a column to its content. |
|
autoSizeColumns() : void |
GridView |
Autofits all columns to their content and then expands to fit any extra space in the grid |
|
ensureVisible(Number row , Number col , Boolean hscroll ) : void |
GridView |
Scrolls the specified cell into view |
|
fitColumns(Boolean reserveScrollSpace ) : void |
GridView |
Autofits all columns to the grid's width proportionate with their current size |
|
focusCell(Number row , Number col , Boolean hscroll ) : void |
GridView |
Focuses the specified cell. |
|
focusRow(Number row ) : void |
GridView |
Focuses the specified row. |
|
getFooterPanel(Boolean doShow ) : Ext.Element |
GridView |
Gets a panel in the footer of the grid that can be used for toolbars etc.
After modifying the contents of this panel ... |
|
getHeaderPanel(Boolean doShow ) : Ext.Element |
GridView |
Gets a panel in the header of the grid that can be used for toolbars etc.
After modifying the contents of this panel ... |
|
getRowClass(Record record , Number index ) : void |
GridView |
Override this function to apply custom css classes to rows during rendering |
|
refresh(Boolean headersToo ) : void |
GridView |
Refreshes the grid |
|
scrollToTop() : void |
GridView |
Scrolls the grid to the top |
公共事件
此类没有公共事件。
构造函数
GridView
public function GridView(Object config
)
方法详情
autoSizeColumn
public function autoSizeColumn(Number colIndex
, Boolean forceMinSize
)
Autofit a column to its content.
This method is defined by GridView.
autoSizeColumns
public function autoSizeColumns()
Autofits all columns to their content and then expands to fit any extra space in the grid
This method is defined by GridView.
ensureVisible
public function ensureVisible(Number row
, Number col
, Boolean hscroll
)
Scrolls the specified cell into view
This method is defined by GridView.
fitColumns
public function fitColumns(Boolean reserveScrollSpace
)
Autofits all columns to the grid's width proportionate with their current size
This method is defined by GridView.
focusCell
public function focusCell(Number row
, Number col
, Boolean hscroll
)
Focuses the specified cell.
This method is defined by GridView.
focusRow
public function focusRow(Number row
)
Focuses the specified row.
参数:
row
: NumberThe row index
返回:
This method is defined by GridView.
getFooterPanel
public function getFooterPanel(Boolean doShow
)
Gets a panel in the footer of the grid that can be used for toolbars etc.
After modifying the contents of this panel a call to grid.autoSize() may be
required to register any changes in size.
This method is defined by GridView.
getHeaderPanel
public function getHeaderPanel(Boolean doShow
)
Gets a panel in the header of the grid that can be used for toolbars etc.
After modifying the contents of this panel a call to grid.autoSize() may be
required to register any changes in size.
This method is defined by GridView.
getRowClass
public function getRowClass(Record record
, Number index
)
Override this function to apply custom css classes to rows during rendering
参数:
record
: RecordThe record
index
: Number
返回:
This method is defined by GridView.
refresh
public function refresh(Boolean headersToo
)
This method is defined by GridView.
scrollToTop
public function scrollToTop()
Scrolls the grid to the top
This method is defined by GridView.