You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/display-web-report-designer-in-angular-application.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,38 +46,39 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
46
46
1. Add references to all required [Telerik Web Report Designer resources]({%slug telerikreporting/designing-reports/report-designer-tools/web-report-designer/overview%}#prerequisites) in your main HTML page (`index.html`). Replace `https://localhost:5000` with your actual ASP.NET application URL:
> The `webReportDesigner.kendo-{{site.buildversion}}.min.js` file is not served automatically by the Report Designer REST service. You need to copy this file from your Telerik Reporting installation directory (`C:\Program Files (x86)\Progress\Telerik Reporting {{site.suiteversion}}\Html5\ReportDesigner\js\`) to your ASP.NET Core application's `wwwroot/js/` folder and reference it as shown above. This approach uses the Kendo UI subset included with your Telerik Reporting license instead of requiring a separate Kendo UI license.
62
61
63
62
1. Generate a new Angular component for the report designer:
64
63
65
64
````bash
66
-
$ ng generate component report-designer
67
-
````
65
+
$ ng generate component report-designer
66
+
````
68
67
69
68
70
69
1. In your `report-designer.component.html`, add a container element for the designer:
71
70
72
71
````HTML
73
-
<div id="webReportDesigner"></div>
74
-
````
72
+
<divid="webReportDesigner"></div>
73
+
````
75
74
76
75
77
76
1. In your `report-designer.component.js(ts)`, declare jQuery and initialize the designer:
78
77
78
+
* JavaScript
79
+
79
80
````JavaScript
80
-
import { Component, OnInit } from '@angular/core';
81
+
import { Component, OnInit } from '@angular/core';
81
82
82
83
@Component({
83
84
selector: 'app-report-designer',
@@ -94,9 +95,13 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
94
95
}).data("telerik_WebDesigner");
95
96
}
96
97
}
97
-
````
98
+
````
99
+
100
+
101
+
* TypeScript
102
+
98
103
````TypeScript
99
-
import { Component, OnInit } from '@angular/core';
104
+
import { Component, OnInit } from '@angular/core';
100
105
101
106
declare var $: any;
102
107
@@ -115,7 +120,7 @@ Follow these steps to integrate the Telerik Web Report Designer in your Angular
0 commit comments