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: embedding-reports/display-reports-in-applications/web-application/html5-report-viewer/customizing/how-to-create-a-custom-parameter-editor.md
+9-73Lines changed: 9 additions & 73 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: Custom Parameter Editors
3
3
page_title: Creating and Using Custom Parameter Editors in HTML5 ReportViewer
4
-
description: "Learn How to Create and use Custom Parameter Editors in the HTML5 ReportViewer in Telerik Reporting."
4
+
description: "Learn how to create and use Custom Parameter Editors in the HTML5 ReportViewer in Telerik Reporting."
The article elaborates on how to change the default editors for visible parameters in the HTML5 Viewer's Parameters Area.
15
15
16
-
Custom parameter editors are defined through the parameterEditors ([Report Viewer Initialization]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization%})) array passed as an option when creating the report viewer widget. Each object represents a parameter editor factory for creating editors suitable to edit a specific report parameter configuration.
16
+
Custom parameter editors are defined through the parameterEditors ([Report Viewer Initialization]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/report-viewer-initialization%})) array passed as an option when creating the report viewer widget. Each object represents a parameter editor factory for creating editors suitable for editing a specific report parameter configuration.
17
17
18
-
Each editor is an object which contains two methods: `match` and `createEditor`.
18
+
Each editor is an object that contains two methods: `match` and `createEditor`.
19
19
20
-
The `match` method accepts a report parameter to be edited as an argument and returns a boolean value which indicates whether the parameter editor is suitable for this parameter. The parameter variable exposes the properties of the report parameter like name, allowNull, availableValues, multiValue, type, etc.
20
+
The `match` method accepts a report parameter to be edited as an argument and returns a boolean value that indicates whether the parameter editor is suitable for this parameter. The parameter variable exposes the properties of the report parameter, like _name_, _allowNull_, _availableValues_, _multiValue_, _type_, etc.
21
21
22
-
The main work for creating and utilizing the parameter editor is done in the `createEditor` method. Its purpose is to create the parameter editor UI and wire it to the `parameterChanged` callback when a new value is selected. The return result is a new object containing the `beginEdit` method which is the entry point for creating the editor from the viewer.
22
+
The main work for creating and utilizing the parameter editor is done in the `createEditor` method. Its purpose is to create the parameter editor UI and wire it to the `parameterChanged` callback when a new value is selected. The return result is a new object containing the `beginEdit` method, which is the entry point for creating the editor from the viewer.
23
23
24
-
The following example illustrates how to use the Kendo DropDownList widget for a single parameter value parameter editor which also has available values:
24
+
The following example illustrates how to use the Kendo DropDownList widget for a single parameter value parameter editor, which also has available values:
25
25
26
-
````JavaScript
27
-
{
28
-
match:function (parameter) {
29
-
// Here you can use all of the parameter properties to
0 commit comments