Skip to main content

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.v24.2.Web.WebForms.dll

NuGet Package: DevExpress.Web.Dashboard

#Declaration

[DefaultValue("")]
public string BeforeRender { get; set; }

#Property Value

Type Default Description
String String.Empty

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

#Remarks

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" />
</dx:ASPxDashboard>

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

<head>
    <script>
        function onBeforeRender(sender) {
            var dashboardControl = sender.GetDashboardControl();
            // ...
        }
    </script>
</head>

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