Skip to main content

Data Binding Using Mapping Properties

When the ASPxTabControl binds to an arbitrary data source (specified by the ASPxHierarchicalDataWebControl.DataSourceID or ASPxDataWebControlBase.DataSource), a Tab object is created automatically for every recognized data item. The individual tab’s characteristics (such as text, image path, navigation location, tooltip text, etc) are obtained from the data fields (node attributes) of the corresponding data items. The ASPxTabControl exposes its specific data-related properties, allowing you to specify which data source fields the tab information should be retrieved from. The table below lists these properties and the corresponding properties of a Tab object.

Tab control properties Tab object properties
ASPxTabControl.ActiveTabImageUrlField ActiveTabImageUrl
ASPxTabControl.NameField Name
ASPxTabControl.NavigateUrlField NavigateUrl
ASPxTabControl.TabImageUrlField TabImageUrl
ASPxTabControl.TextField Text
ASPxTabControl.ToolTipField ToolTip

In the picture below, binding to an XML file is used as an illustration of the data retrieval path during the binding process.

TabControl - Data Binding using Mapping Properties

Examples

Online demos