Login Register

View Options

Attributes
cells dojox.grid.cell[] Array of cell objects, each defining a column
defaultCell dojox.grid.cell Properties of this cell are used as defaults in all cells
defaultWidth String width of cells (columns), if not specified in the cell itself
noscroll Boolean If true, do not draw scroll bars on right or bottom.
rowPad Integer Space to use between rows, in pixels
type String Name of class for programmatically-generated views like GridRowView.
viewWidth String Width of entire view in valid CSS units.
Methods
Node getCellNode(/* Integer */ inRowIndex, /* Integer */ inCellIndex) Get cell at the specified location
Integer getColumnsWidth() Width of data columns, in px
String getContentWidth() Width of the containing box in CSS units, minus scrollbar (= getColumnsWidth + padding and borders, etc.)
Node getRowNode(/* Integer */ inRowIndex) Get row at the specified location
Integer getScrollbarWidth() Width of scrollbar in px, 0 for noscroll
String getWidth() Total width of scrollbar and columns in CSS units
Boolean hasScrollbar() True if there are enough rows to display a scrollbar.
resize() resizeHeight(), then resizeWidth()
resizeHeight() Resize to fit new height of containing box
resizeWidth() Resize to fit new width of containing box
setColWidth(/* Integer */ inIndex, /* Integer */inWidth) Resize cell (column) at inIndex to inWidth pixels
setSize(/* Integer */ w, /* Integer */ h) Set size of the bounding box. Call resize() after.