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
  [Collapse]Image and Data Browsing
   [Expand]DataView
   [Expand]ImageGallery
   [Collapse]ImageSlider
     Overview - ImageSlider
    [Collapse]Concepts
     [Collapse]Binding to Data
       Binding to Data Overview
       Data Binding Using Mapping Properties
       Automatic Data Binding
       Binding to a Folder
       Unbound Mode
    [Expand]Visual Elements
   [Expand]ImageZoom
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [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]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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Automatic Data Binding

The ImageSlider has a built-in ability to automatically retrieve data from a data source that supports the IEnumerable or IQueryable. This topic describes the conditions that allow an ImageSlider to bind automatically.

The ImageSlider can recognize data items and retrieve some item characteristics from the data fields named in a specific way. If however, any of the data-related properties of an ImageSlider (such as TextField, ImageUrlField, etc.) have been set, then the mapping of the associated object properties will proceed according to Data Binding Using Mapping Properties.

Expanded Data fields and item properties name match

During binding, the ImageSlider implements its automatic binding ability by retrieving item characteristics from those data fields whose names coincide with certain property names of a MVCxMenuItem object. The tables below list the names of the object properties that can be mapped during automatic binding, and the matching data field names you should use in the data source for mapping to work.

Data field names Item properties that can be set automatically
ImageUrl ImagePropertiesBase.Url (via MVCxImageSliderItem.Image.Url)
Name ImageSliderItem.Name (via MVCxImageSliderItem.Name)
NavigateUrl ImageSliderItem.NavigateUrl (via MVCxImageSliderItem.NavigateUrl)
Text ImageSliderItem.Text (via MVCxImageSliderItem.Text)
ThumbnailUrl ImageSliderItem.NavigateUrl (via MVCxImageSliderItem.NavigateUrl)
ImageContentBytes ImageSliderItem.ImageContentBytes (via MVCxImageSliderItem.ImageContentBytes)
ThumbnailContentBytes ImageSliderItem.ThumbnailContentBytes (via MVCxImageSliderItem.ThumbnailContentBytes)

The following image illustrates the process of data retrieval during automatic binding to a list of objects containing image item settings.

Expanded See Also

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