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

How to: Apply Master Filtering in ASPxDashboardViewer in OLAP Mode


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 following example demonstrates how to apply master filtering in ASPxDashboardViewer on the client side when the dashboard is connected to an OLAP cube.

In this example, the ASPxClientDashboardViewer.SetMasterFilter method is used to select required cards in the Card dashboard item. This method is called in the ASPxClientButton.Click event handler of ASPxButton1.

        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="SetMasterFilter" 
            <ClientSideEvents Click="function(s, e) {
                onButtonClick(s, e);
}" />
        <dx:ASPxDashboardViewer ID="ASPxDashboardViewer1" runat="server" DashboardId="" FullscreenMode=true
<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Scripts/MasterFilter.js")%>"></script>
See Also