[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]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Charting
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Collapse]Data and Image Navigation
   [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
      Paging
    [Expand]Visual Elements
   [Expand]ImageZoom
  [Expand]Multi-Use Site Extensions
  [Expand]SpellChecker
  [Expand]Query Builder
 [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]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[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

Is this topic helpful?​​​​​​​