Servis-Rhino 4211B Betriebsanweisung Seite 188

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 298
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 187
rowId Cell, Row, RowHeaderCell
rowIndex Cell, Row, RowHeaderCell
parentId Cell, Row, RowHeaderCell
visualIndex Cell, Row, RowHeaderCell
columnId Cell, HeaderCell
columnIndex Cell, HeaderCell
cellNode Cell
headerCellNode HeaderCell
rowHeaderCellNode RowHeaderCell, Row
isRowHeader RowHeaderCell, Row
Common GridX patterns
When working with GridX, there are common patterns that come about. Here is a list of some of
the more common recipes.
Adding Row Selection
To add row selection, we need to include the following modules:
gridx/modules/select/Row
gridx/modules/IndirectSelect
gridx/modules/RowHeader
If we wish single row selection (radio button) then set the grid constructor property called
"selectRowMultiple" to be false. If we wish multi row selection (check boxes) then set
"selectRowMultiple" to be true.
Working with Rows
If we are given an object that represents a GridX row, what can we do with it? The JavaScript
object that represents the row can be found documented at "gridx/core/Row".
If we are supplied a "cell" object, we can find the row that contains the cell using the "row"
property.
One of the most important things is to get the data associated with that row. This can be retrieved
with the "item()" method.
Some of the more important methods include:
item() - Retrieve the item from the store for this row
Adding and processing buttons
On occasion, we may wish to add a button into the grid. When clicked, this button will likely "do
something" against the selected row. The Grid must have the "CellWidget" module associated
with it.
Page 188
Seitenansicht 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 297 298

Kommentare zu diesen Handbüchern

Keine Kommentare