The requested page is not available for the requested platform. You are viewing the content for Default platform.

How to: Add Custom Interactivity to a Dashboard Displayed in the Web Viewer

Important

This documentation applies to v16.2. Starting with v17.1, the ASPxDashboardViewer control is in maintenance mode. In v19.1, the new Web Dashboard Control replaces the old Web Dashboard Viewer. This means that the Web Dashboard Viewer will not be included in our installation packages. See our blog post for more information.

Refer to the following KB articles to learn how to migrate to ASPxDashboard / ASP.NET MVC Dashboard:

The Web Viewer allows you to add a custom interactivity to dashboards using the ASPxClientDashboardViewer.ItemVisualInteractivity event.

This example demonstrates the following capabilities:

  • The Grid dashboard item allows you to select categories and visualize a corresponding product quantity using the dxBarGauge widget. Note that the hidden 'Quantity' measure is used to pass the required values to the client.
  • The Chart dashboard item highlights bars corresponding to a hovered argument value.
using System;
using Dashboard_CustomVisualInteractivity_Web.nwindDataSetTableAdapters;

namespace Dashboard_CustomVisualInteractivity_Web {
    public partial class Dashboard1 : DevExpress.DashboardCommon.Dashboard {
        public Dashboard1() {
            InitializeComponent();
        }

        private void Dashboard1_DashboardLoading(object sender, EventArgs e) {
            SalesPersonTableAdapter categories = new SalesPersonTableAdapter();
            categories.Fill(this.nwindDataSet1.SalesPerson);
        }
    }
}
See Also