Git Product home page Git Product logo

devexpress-examples / how-to-display-each-series-in-a-separate-pane-for-chart-dashboard-items Goto Github PK

View Code? Open in Web Editor NEW
0.0 55.0 0.0 157 KB

This example creates a WinForms Dashboard extension module that allows users to display each series in a separate pane for Chart Dashboard Items.

License: Other

C# 53.66% Visual Basic .NET 46.34%
business-intelligence winforms winforms-dashboard-designer desktop dashboard-for-winforms

how-to-display-each-series-in-a-separate-pane-for-chart-dashboard-items's Introduction

Dashboard for WinForms - How to Display Each Series in a Separate Pane for Chart Dashboard Items

This example creates a WinForms Dashboard extension module that allows users to display each series in a separate pane for Chart Dashboard Items.

Files to Review

MultiPane Extension

This extension adds four new options to the Dashboard Designer's Ribbon toolbar:

  • The Autogenerate Panes option generates a separate pane for each series;
  • The Show Pane Titles option displays titles at the top of each pane. This option only applies to panes generated by this extension.
  • The Allow Pane Collapsing option collapses and expands panes generated by this extension at run-time.
  • The Pane Layout Mode option determines the layout of panes within the Chart Dashboard Item.

These custom settings are stored in the dashboard definition and can be saved and restored as a part of a dashboard file. You can use Dashboard exporting capabilities to print/export Chart Items with panes generated by this extension.

How to Integrate the MultiPane Extension Module

Follow the steps below to reuse the module in other Dashboard Designer/Viewer applications:

  • Add the MultiPaneExtension project to your solution
  • Add a reference to this project to References in your project with dashboard controls
  • Call the following code to create the extension and attach it to the Viewer or Designer control:

C# code:

MultiPaneModule extension = new MultiPaneModule();
extension.Attach(*Dashboard Control instance*);

VB code:

Dim extension As New MultiPaneModule()
extension.Attach(*Dashboard Control instance*)

Example Structure

The MultiPaneModule class contains the main logic of the extension and includes the following logical sections:

  • Assigning Logic

    The Attach and Detach methods in this section subscribe and unsubscribe events used for customization in this extension.

  • Common Logic

    This section contains event handlers and methods for the Designer and Viewer controls.

  • Designer Logic

    This section contains the logic for the Dashboard Designer UI. It includes methods that add new ribbon toolbar items, their click handlers, and the method that updates their states based on the selected dashboard item.

The MultiPaneSettings class describes the model of custom settings used in this extension. The extension stores this model in a Custom Property of each Chart Item and reads this data when required. The class has the FromJson and ToJson public static methods which saves and reads data in JSON format because custom properties allow you to store data only in the string format.

Documentation

how-to-display-each-series-in-a-separate-pane-for-chart-dashboard-items's People

Contributors

ritazakhodyaeva avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.