From d7b9bbf11b2a1d0600e8c0852768317882f1e3ba Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 9 Oct 2024 14:41:17 +0300 Subject: [PATCH 01/13] Created a new file vale.yml [skip ci] --- .github/workflows/vale.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/vale.yml diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml new file mode 100644 index 0000000..adadc73 --- /dev/null +++ b/.github/workflows/vale.yml @@ -0,0 +1,26 @@ +name: vale-validation +on: + pull_request: + paths: + - README.md + +jobs: + vale: + name: runner / vale + runs-on: ubuntu-latest + steps: + - name: clone repo + uses: actions/checkout@v4 + - name: clone vale-styles repo + uses: actions/checkout@v4 + with: + repository: DevExpress/vale-styles + path: vale-styles + ssh-key: ${{ secrets.VALE_STYLES_ACCESS_KEY }} + - name: copy vale rules to the root repo + run: shopt -s dotglob && cp -r ./vale-styles/vale/* . + - name: vale linter check + uses: DevExpress/vale-action@reviewdog + with: + files: README.md + fail_on_error: true From 82c257fdfb7b5d721ffbd8261c34f59411831a44 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Tue, 15 Oct 2024 11:02:19 +0400 Subject: [PATCH 02/13] Vale auto update [skip ci] --- .github/workflows/vale.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index adadc73..068c35b 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -24,3 +24,5 @@ jobs: with: files: README.md fail_on_error: true + filter_mode: nofilter + reporter: github-check From ef041a82d5aaf61182b6aeba956033e34c5f00ba Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Mon, 3 Mar 2025 18:35:33 +0400 Subject: [PATCH 03/13] Vale auto update [skip ci] --- .github/workflows/vale.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 068c35b..fc11f81 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -3,6 +3,8 @@ on: pull_request: paths: - README.md + - readme.md + - Readme.md jobs: vale: @@ -22,7 +24,7 @@ jobs: - name: vale linter check uses: DevExpress/vale-action@reviewdog with: - files: README.md + files: '["README.md", "readme.md", "Readme.md"]' fail_on_error: true filter_mode: nofilter reporter: github-check From 0f1ebf580011dcb43f7c3115e214e720627b5208 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Tue, 2 Sep 2025 19:09:31 +0400 Subject: [PATCH 04/13] README auto update [skip ci] --- Readme.md | 72 +++++++++++++++++++++++++++---------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/Readme.md b/Readme.md index e89384d..cb6a838 100644 --- a/Readme.md +++ b/Readme.md @@ -1,36 +1,36 @@ - -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128579131/21.2.1%2B) -[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T590027) -[![](https://img.shields.io/badge/šŸ“–_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) -[![](https://img.shields.io/badge/šŸ’¬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) - - -# BI Dashboard for MVC - How to implement server-side export - -This example demonstrates how to export a dashboard displayed usingĀ theĀ ASP.NET MVC Dashboard extensionĀ on the server side using theĀ WebDashboardExporterĀ class. The following API isĀ used: - -* TheĀ ASPxClientDashboard.BeforeRenderĀ event is handled to obtain the client-sideĀ DashboardControl with theĀ ASPxClientDashboard.GetDashboardControlĀ method. -* The AJAX request is used to send the dashboard identifier and stateĀ to the server side. On the server side, these values are received as action method parameters andĀ passed toĀ theĀ WebDashboardExporter.ExportToPdfĀ method. - - -## Files to look at - -* [HomeController.cs](./CS/MvcDashboard_ServerExport/Controllers/HomeController.cs) -* [DashboardExport.js](./CS/MvcDashboard_ServerExport/Scripts/DashboardExport.js) - - -## Documentation - -- [Printing and Exporting](https://docs.devexpress.com/Dashboard/15181/common-features/printing-and-exporting) - -## More Examples - -- [Dashboard for Web Forms - How to Enable Export in Data Inspector](https://supportcenter.devexpress.com/ticket/details/t862387/aspxdashboard-how-to-enable-exporting-in-data-inspector) -- [Dashboard for Web Forms - How to export Web Dashboard into PDF with different filter values on different pages](https://supportcenter.devexpress.com/ticket/details/t511362/how-to-export-web-dashboard-into-pdf-with-different-filter-values-on-different-pages) - -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - -(you will be redirected to DevExpress.com to submit your response) - + +![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128579131/21.2.1%2B) +[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T590027) +[![](https://img.shields.io/badge/šŸ“–_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) +[![](https://img.shields.io/badge/šŸ’¬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) + + +# BI Dashboard for MVC - How to implement server-side export + +This example demonstrates how to export a dashboard displayed usingĀ theĀ ASP.NET MVC Dashboard extensionĀ on the server side using theĀ WebDashboardExporterĀ class. The following API isĀ used: + +* TheĀ ASPxClientDashboard.BeforeRenderĀ event is handled to obtain the client-sideĀ DashboardControl with theĀ ASPxClientDashboard.GetDashboardControlĀ method. +* The AJAX request is used to send the dashboard identifier and stateĀ to the server side. On the server side, these values are received as action method parameters andĀ passed toĀ theĀ WebDashboardExporter.ExportToPdfĀ method. + + +## Files to look at + +* [HomeController.cs](./CS/MvcDashboard_ServerExport/Controllers/HomeController.cs) +* [DashboardExport.js](./CS/MvcDashboard_ServerExport/Scripts/DashboardExport.js) + + +## Documentation + +- [Printing and Exporting](https://docs.devexpress.com/Dashboard/15181/common-features/printing-and-exporting) + +## More Examples + +- [Dashboard for Web Forms - How to Enable Export in Data Inspector](https://supportcenter.devexpress.com/ticket/details/t862387/aspxdashboard-how-to-enable-exporting-in-data-inspector) +- [Dashboard for Web Forms - How to export Web Dashboard into PDF with different filter values on different pages](https://supportcenter.devexpress.com/ticket/details/t511362/how-to-export-web-dashboard-into-pdf-with-different-filter-values-on-different-pages) + +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + +(you will be redirected to DevExpress.com to submit your response) + From 98ff51a6851e83635ab43949d99745d8fbd8aa85 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Tue, 2 Sep 2025 19:13:30 +0400 Subject: [PATCH 05/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index cb6a838..c950d01 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From b8264c88559f7e3ccdc58de223aa53111d5fd5d9 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 10 Sep 2025 01:12:25 +0400 Subject: [PATCH 06/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index c950d01..cb6a838 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From 2fc3abd7a4d1d8196d239be461cc87402f936519 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 10 Sep 2025 01:15:21 +0400 Subject: [PATCH 07/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index cb6a838..c950d01 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From 8157160c8f2eb58295d4356b4b27ba08fc12cd59 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Thu, 11 Sep 2025 01:43:04 +0400 Subject: [PATCH 08/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index c950d01..cb6a838 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From c266cae6f216c69420286fac4973dd18d96e9188 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Thu, 11 Sep 2025 01:57:00 +0400 Subject: [PATCH 09/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index cb6a838..c950d01 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From 4e3bda9145674311e3113dda2c2dba5a3acc3de2 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Fri, 12 Sep 2025 10:29:40 +0400 Subject: [PATCH 10/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index c950d01..cb6a838 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From ed3ff7e53f4102ebfe70ccbd4e2208fd2536b242 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Fri, 12 Sep 2025 10:50:23 +0400 Subject: [PATCH 11/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index cb6a838..c950d01 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From db65f0ad486814c95ea474b46f4213a803b522dc Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 12 Nov 2025 19:20:24 +0400 Subject: [PATCH 12/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index c950d01..cb6a838 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response) From 2ba1f5e6813cd322ef95dce8c3bb3099b6797539 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 12 Nov 2025 19:25:23 +0400 Subject: [PATCH 13/13] README auto update [skip ci] --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index cb6a838..c950d01 100644 --- a/Readme.md +++ b/Readme.md @@ -28,9 +28,9 @@ This example demonstrates how to export a dashboard displayed usingĀ theĀ  -## Does this example address your development requirements/objectives? - -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) - +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=asp-net-mvc-dashboard-implement-server-side-export&~~~was_helpful=no) + (you will be redirected to DevExpress.com to submit your response)