Method Summary |
|
native protected JavaScriptObject | create(JavaScriptObject config) |
native public void | fitColumns(boolean reserveScrollSpace) Autofits all columns to the grid's width proportionate with their current size. |
native public void | focusCell(int rowIndex, int colIndex, boolean hscroll) Focuses the specified cell. |
native public void | focusRow(int rowIndex) Focusses the specified row. |
native public Element | getCell(int rowIndex, int colIndex) Returns a cells element. |
native public Element | getHeaderCell(int index) Return the header cell. |
public JavaScriptObject | getJsObj() |
native public Element | getRow(int index) Returns the row element. |
public String | getRowClass(Record record, int index, RowParams rowParams, Store store) Override this function to apply custom css classes to rows during rendering. |
native public void | refresh() Refreshes the grid. |
native public void | refresh(boolean headersToo) Refreshes the grid. |
native public void | refreshRow(int index) Refresh a row. |
native public void | refreshRow(Record record) The record to refresh. |
native public void | scrollToTop() Scrolls the grid to the top. |
public void | setAutoFill(boolean autoFill) True to auto expand the columns to fit the grid when the grid is created. |
public void | setEmptyText(String emptyText) Default text to display in the grid body when no rows are available (defaults to ''). |
public void | setEnableRowBody(boolean enableRowBody) True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. |
public void | setForceFit(boolean forceFit) True to auto expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. |
public void | setScrollOffset(int scrollOffset) The amount of space to reserve for the scrollbar (defaults to 19 pixels). |
native public void | updateHeaderSortState() Update the headers sort state. |