Skip to content

Commit 6e2f6fa

Browse files
docs: update solution section to address corner cases (#1718)
1 parent aa2d841 commit 6e2f6fa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

knowledge-base/resolving-cannot-redefine-property-error-telerik-reporting.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ This knowledge base article also answers the following questions:
3838

3939
## Solution
4040

41-
To resolve this issue, modify the JavaScript code to scope element selection to each report viewer's parent container. Use the `$element.find` method to ensure that each toolbar element is properly scoped within its specific report viewer instance. Additionally, fix the export functionality to avoid it being disabled across multiple viewers.
41+
To resolve this issue, update the source code of `telerikReportViewer-19.1.25.521.js` used in your project to scope element selection to each report viewer's parent container. Use the `$element.find` method to ensure that each toolbar element is properly scoped within its specific report viewer instance. Additionally, fix the export functionality to avoid it being disabled across multiple viewers.
42+
43+
If you are using the `.min.js` version of the report viewer, you need to switch to the unminified version located at `C:\Program Files (x86)\Progress\Telerik Reporting 2025 Q2\Html5\ReportViewer\js\telerikReportViewer-19.1.25.521.js` to follow the steps from this article.
44+
45+
For WebForms projects, the JavaScript file is embedded in a DLL. To resolve the issue in this case, copy the JavaScript file from the above location, modify it as outlined in the upcoming steps, add it to your project, and reference it with a script tag immediately after the last closing `</telerik:ReportViewer>` tag.
4246

4347
### Fixing Toolbar Element Initialization
4448

@@ -56,7 +60,6 @@ if (pageCountLabelEl) {
5660
}
5761
````
5862

59-
6063
### Fixing Export Functionality
6164

6265
Modify the code in the `Toolbar` class to ensure that export functionality works correctly for multiple report viewers.
@@ -84,7 +87,7 @@ const $element = $(this._element);
8487
if (!kendoExportDropDown) {
8588
return;
8689
}
87-
````
90+
````
8891

8992

9093
### Summary

0 commit comments

Comments
 (0)