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 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)