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

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 pictures which are used in this demo were created with our XtraCharts suite.

This demo illustrates how the DevExpress ASP.NET Popup Control (ASPxPopupControl) can be bound to a data source. The ASPxPopupControl supports standard data binding. In this instance, any object that implements the IListSource, IEnumerable or IDataSource interface (e.g., SqlDataSource, XmlDataSource) may be used as a data source for this control.

In this demo, the popup control is bound to a standard XmlDataSource type data source. It supplies the popup control with data from a specific Charts.xml file. The ASPxPopupControl requires data to be represented as the contents of different elements within popup windows. Use the XPath property to obtain the desired data sample.

In this demo, the contents of each popup window are defined by placing a standard Image web control onto a WindowContentTemplate type template. The ImageUrl property of the Image control is bound directly to the XmlDataSource's node using the Container.EvalDataItem(<expression>) method. (See ASPX code)

The window's footer is defined via the WindowFooterTemplate by using the Label web control whose Text property binds to the data of the corresponding xml node using the Container.EvalDataItem(<expression>) method. (See ASPX code)

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
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxDockAndPopupsDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxDockAndPopupsDemos