dataContexts - Control Data Contexts

Defines data contexts.

Category

data

Syntax

<xp:this.dataContexts>
	<xp:dataContext indexVar="name" loaded="true|false" rowIndex="n"
		value="value" var="name">
	</xp:dataContext>
	...
</xp:this.dataContexts>
This property applies to pages and some container controls.

Usage

In Design mode, ensure focus is on the page or container control. Click All Properties and look for dataContexts under data.

Contained properties

indexVar="name"
Specifies a request scope variable name where the row index is made visible.
loaded="true|false"
Creates or does not create the tag instance when the page is loaded.
rowIndex="n"
Specifies the index of the current row where 0 is the first row.
value="value"
Specifies the value of the data context.
var="name"
Specifies the request scope variable name where the data context is exposed.