Log In
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Collapse]Docking and Popups
   [Expand]Product Information
   [Expand]Hint Control
   [Expand]Loading Panel
   [Collapse]Popup Control
     ASPxPopupControl Overview
     [Expand]Popup Windows
     [Collapse]Binding to Data
       Binding to Data Overview
       Automatic Data Binding
       Using Data Binding Events
      Appearance Customization
      ASPxPopupControl Limitations
    [Expand]Visual Elements
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [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]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Using Data Binding Events

ASPxPopupControl implements specific data-binding events - ASPxDataWebControlBase.DataBound and ASPxPopupControl.WindowDataBound. They allow you to perform custom operations at specific times in the data binding process.

The DataBound event is invoked to notify you that any data-binding logic used by ASPxPopupControl has completed. This event occurs after all data items of a specified data source have been processed and the corresponding PopupWindow objects have been added. You can also implement additional logic at this moment by providing a handler to the DataBound event.

The WindowDataBound event occurs immediately after an individual PopupWindow object has been automatically created and its properties have been initialized with values retrieved from corresponding data fields. You can add functionality to your application within a handler of the WindowDataBound event, by accessing the data bound window via the event argument's PopupWindowEventArgs.Window property, and modify its settings as required.

The following example demonstrates how you can handle the WindowDataBound event, to bind the PopupWindow's FooterText property to the Suite attribute manually

The image below shows the result.

Expanded Concepts

Expanded Online demos

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