Giter Club home page Giter Club logo

reporting-blazor-report-viewer-customization's Introduction

Report Viewer for Blazor - Customization API

This project demonstrates how to use API to customize the Report Viewer 'native' server-side Blazor component.

Overview

The Report Viewer API entry point is the DxReportViewer class. You can specify its properties and handle its events to adjust the Report Viewer appearance and behavior.

Example: UI Customization

Related pages: Toolbar.razor, StandAloneParametersPanel.razor.

The sample code sets the component's initial size and zoom level, adds a custom button to the toolbar, hides the Properties Panel.

The example uses the following properties:

Property Result
RootCssClasses Sets the component's height and width to 100%.
Zoom Sets the initial zoom level to 125%.
SizeMode Specifies the medium size of the Report Viewer visual elements.
TabPanelModel Gets the Parameters tab in the Properties Panel to hide the tab and do not display the panel.

The example uses the following method:

Method Result
ParametersModel.OnSubmitParameters Applies parameter values and builds the document.

The following event is handled:

Event Result
OnCustomizeToolbar Adds a custom toolbar button that switches the Report Viewer to full-screen mode.

Example: Stand-Alone Parameter Editor

Related page: StandAloneParametersPanel.razor.

The sample code creates a custom component that is composed of a combo box and a button. The component allows the user to specify the report parameter value.

The example uses the following properties:

Property Result
ParametersModel Gets the report parameters model.
ParametersModel.VisibleItems Provides access to the report parameters that the user can change.

The example uses the following method:

Method Result
OnAfterRender Gets access to the TabPanelModel property.

The following events are handled:

Event Result
OnCustomizeParameters Gets the Parameter model and stores it in a variable.

Example: Custom Parameter Editor

Related page: CustomEditor.razor.

The sample code specifies a custom template for the parameter editor in the Parameters panel.

The example uses the following properties:

Property Result
ParametersModel Gets the report parameters model.
ParametersModel.VisibleItems Gets the specified parameter model from the parameter collection.
ParameterModel.ValueTemplate Specifies the editor template for the parameter in the current model.

The following events are handled:

Event Result
OnCustomizeParameters Retrieves a parameter from the Parameter model and specifies a template for the parameter editor.

How to Run the Example

  1. Download the project and update the DevExpress.Blazor.Reporting.Viewer and DevExpress.Blazor NuGet packages.
  2. Build and run the project.

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

reporting-blazor-report-viewer-customization's People

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  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.