Data Binding Using Mapping Properties

When TreeView binds to an arbitrary data source, a MVCxTreeViewNode object is created automatically for every recognized data item. The individual node's characteristics (such as text, name, image path, navigation location, and tooltip text) are obtained from the data fields (item attributes) of corresponding data items. TreeView exposes its specific data-related properties, allowing you to specify which data source fields the node information should be retrieved from. The table below lists these properties and the corresponding properties of a MVCxTreeViewNode object.

TreeView data-related properties Corresponding TreeViewNode object properties
TreeViewSettings.ImageUrlField ImagePropertiesBase.Url (via MVCxTreeViewNode.Image.Url)
TreeViewSettings.NameField TreeViewNode.Name (via MVCxTreeViewNode.Name)
TreeViewSettings.NavigateUrlField TreeViewNode.NavigateUrl (via MVCxTreeViewNode.NavigateUrl)
TreeViewSettings.TextField TreeViewNode.Text (via MVCxTreeViewNode.Text)
TreeViewSettings.ToolTipField TreeViewNode.ToolTip (via MVCxTreeViewNode.ToolTip)

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


See Also