How to: Create a Simple Custom Item for the ASP.NET MVC Dashboard Extension

  • 2 minutes to read

This example shows you how to create a simple custom item displaying a list of dimension values. This item can be filtered by other master filter items and also contains one custom property that specifies whether to display the field header caption in the list.

To learn more information about the custom item creating, see Custom Item Creating.


<!DOCTYPE html>

    <meta charset="UTF-8" />

        new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Editors },
        new StyleSheet { ExtensionSuite = ExtensionSuite.Dashboard }
        new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout },
        new Script { ExtensionSuite = ExtensionSuite.Editors },
        new Script { ExtensionSuite = ExtensionSuite.Dashboard }
        function onBeforeRender(sender) {
            var dashboardControl = sender.GetDashboardControl();
            dashboardControl.registerExtension(new CustomItemExtension(dashboardControl));

    <div style="position: absolute; top: 0; bottom: 0; left: 0; right: 0">
    <script src="scripts/customExtension/CustomItemExtension.js"></script>