DashboardControlClientSideEvents.BeforeRender Property

Gets or sets a function used in JavaScript frameworks that is executed when the ASPxClientDashboard.BeforeRender event is raised.

Namespace: DevExpress.DashboardWeb

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


public string BeforeRender { get; set; }

Property Value

Type Default Description


A string that is a function executed when the the event is raised.


The BeforeRender event allows you to customize the Web Dashboard control on the client side before the control and its elements have been rendered. To access the client-side DashboardControl, handle the ASPxClientDashboard.BeforeRender event:

<dx:ASPxDashboard ID="ASPxDashboard1" runat="server">
    <ClientSideEvents BeforeRender="onBeforeRender" />

Then, call the ASPxClientDashboard.GetDashboardControl method to get the DashboardControl instance:

        function onBeforeRender(sender) {
            var dashboardControl = sender.GetDashboardControl();
            // ...

You can now use its API to specify various client-side settings, perform actions, etc. See Client-Side Customization for information on how you can customize the client part of the Web Dashboard control.

See Also