Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Collapse]Navigation and Layout Extensions
   [Expand]FormLayout
   [Expand]Menu
   [Expand]NavBar
   [Expand]Ribbon
   [Expand]PageControl
   [Expand]TabControl
   [Collapse]PopupMenu
     Overview - PopupMenu
    [Collapse]Concepts
     [Collapse]Binding to Data
       Binding to Data Overview
       Data Binding Using Mapping Properties
       Automatic Data Binding
       Unbound Mode
      Templates
    [Expand]Visual Elements
   [Expand]Splitter
   [Expand]TreeView
   [Expand]Panel
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Data Binding Using Mapping Properties

When a PopupMenu binds to an arbitrary data source, a MVCxMenuItem object is created automatically for every recognized data item. The individual item'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. PopupMenu exposes its specific data-related properties, allowing you to specify which data source fields the item information should be retrieved from. The table below lists these properties and the corresponding properties of a MVCxMenuItem object.

PopupMenu data-related properties

Corresponding MVCxMenuItem object properties

MenuSettingsBase.ImageUrlField (via PopupMenuSettings.ImageUrlField) ImagePropertiesBase.Url (via MVCxMenuItem.Image.Url)
MenuSettingsBase.NameField (via PopupMenuSettings.NameField) MenuItem.Name (via MVCxMenuItem.Name)
MenuSettingsBase.NavigateUrlField (via PopupMenuSettings.NavigateUrlField) MenuItem.NavigateUrl (via MVCxMenuItem.NavigateUrl)
MenuSettingsBase.TextField (via PopupMenuSettings.TextField) MenuItem.Text (via MVCxMenuItem.Text)
MenuSettingsBase.ToolTipField (via PopupMenuSettings.ToolTipField) MenuItem.ToolTip (via MVCxMenuItem.ToolTip)

How would you rate this topic?​​​​​​​