djxDataGridColumn - Dojo Data Grid Column

Defines the content of a column. Can be inserted into a grid or row.

Category

Dojo Grid Controls

Syntax

<xe:djxDataGridColumn attributes>content</xe:djxDataGridColumn>
Table 1. Essential properties
Property Description
id Defaults to djxDataGridColumn1, djxDataGridColumn2, and so on.
field Name of a field in the data store.
Table 2. All properties
Category Properties
basics binding, cellType, editable, hidden, id, label, loaded, options, rendered, rendererType
data field, formatter, get
format width
styling disableTheme, themeId

Usage

This control is not tested against the latest accessibility standards. The recommended accessible path is the Data Table control.

Examples

This example uses a REST service to get column values from a Domino(r)® view and presents the values in a grid with one column.
<xp:this.data>
	<xp:dominoView var="view1" viewName="subject"></xp:dominoView>
</xp:this.data>
<xp:panel>
	<xe:restService id="restService1">
		<xe:this.service>
			<xe:viewItemFileService viewName="subject" var="entry"
				defaultColumns="true" contentType="application/json">
				<xe:this.columns>
					<xe:restViewColumn columnName="subject"
						name="subject">
						<xe:this.value><![CDATA[#{javascript:return entry.getColumnValue("subject")}]]></xe:this.value>
					</xe:restViewColumn>
				</xe:this.columns>
			</xe:viewItemFileService>
		</xe:this.service>
	</xe:restService>
	<xp:br></xp:br>
	<xe:djxDataGrid id="djxDataGrid1"
		storeComponentId="restService1">
		<xe:djxDataGridColumn id="djxDataGridColumn1"
			field="subject" editable="true">
		</xe:djxDataGridColumn>
	</xe:djxDataGrid>
</xp:panel>