Back to Devexpress

DashboardControlClientSideEvents Class

dashboard-devexpress-dot-dashboardweb-4de2d017.md

latest3.5 KB
Original Source

DashboardControlClientSideEvents Class

Contains a list of the client-side event handlers available for the ASPxDashboard control and a corresponding MVC extension.

Namespace : DevExpress.DashboardWeb

Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll

NuGet Package : DevExpress.Web.Dashboard

Declaration

csharp
public class DashboardControlClientSideEvents :
    CallbackClientSideEventsBase
vb
Public Class DashboardControlClientSideEvents
    Inherits CallbackClientSideEventsBase

The following members return DashboardControlClientSideEvents objects:

Remarks

Use the ASPxDashboard.ClientSideEvents and DashboardExtensionSettings.ClientSideEvents properties to get a list of Web Dashboard’s client-side events. These properties return the DashboardControlClientSideEvents object that exposes each client side event handler as a separate property. To handle a particular client-side event, assign a JavaScript function name or the entire code to a corresponding property of the DashboardControlClientSideEvents object.

The examples below demonstrate how to perform an action on the Web Dashboard’s BeforeRender event.

  • Example 1. The code sample below shows how to add a JavaScript code directly in the ASPxClientDashboard.BeforeRender property. The Web Dashboard executes this code before Web Dashboard’s rendering:

  • Example 2. The code sample below shows how to execute a JavaScript code using the separate function. The onBeforeRender JavaScript function name is assigned to the ASPxClientDashboard.BeforeRender property. When you add the code to the onBeforeRender function, the Web Dashboard executes it before Web Dashboard’s rendering:

Inheritance

Object StateManager PropertiesBase ClientSideEventsBase ClientSideEvents CallbackClientSideEventsBase DashboardControlClientSideEvents

See Also

DashboardControlClientSideEvents Members

DevExpress.DashboardWeb Namespace