Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Data Binding


  • Manhattan Bar

  • Pie

  • Bar & Line

  • Bar Stacked

  • Gantt
To invoke a popup window move the mouse cursor
over the menu's items on the left

Note: The sample images which are used in this demo were created with the XtraCharts suite.



This demo illustrates the XML binding options available to you when using the DevExpress MVC PopupControl extension. To invoke a popup window, move the mouse pointer over menu items displayed on the left.

The MVC Popup extension provides a number of data binding methods, including Bind, BindToSiteMap, and BindToXML. In this demo, the MVC Popup extension uses the BindToXML method to bind to a Charts.xml file and obtain data from its <Charts> element.

Our ASP.NET MVC extensions allow you to bind their template extensions directly to the corresponding fields of a data source's data object (DataItem). To accomplish this, use the DataBinder.Eval method, and pass Container.Window.DataItem and a field name as method parameters. In the demo, the DataBinder.Eval method is used to bind template extensions of a popup window's content region and footer, via the SetWindowContentTemplateContent and SetWindowFooterTemplateContent methods. For the content region, the BigImageUrl field provides the Image control with ImageUrl property values. For the footer, the View bound field provides a label's text.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDockAndPopupsDemos