This is a migrated thread and some comments may be shown as answers.

HTML5 Report viewer parameters

4 Answers 281 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 22 Oct 2014, 03:47 PM
Quick Question, when I create parameters that contain multiple values the filter always displays as a list box. Is there a way to have the filter be a dropbox rather then having it display multiple items as a list box does?

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Oct 2014, 09:34 AM
Hello,

The HTML5 Report Viewer is composite of standard HTML elements and already existing Kendo UI widgets.

The viewer's template files(the HTML, CSS and JS files) generate widgets based on the type of report parameters, which should be visible. You can override the default behavior and specify custom parameters editors, with customized behavior, which will suit your requirements.

Consider the example in the How To: Create a custom parameter editor article. The settings are available only for the HTML5 Report Viewer - jQuery widget. We consider providing such option for the MVC extension in future releases.


Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
HZ
Top achievements
Rank 1
answered on 02 Sep 2015, 11:56 PM

I did this , and it worked for me

  ParameterEditors-SingleSelectEditor="createSingleSelectEditor" 

 that is a property of the HTML 5 reportviewer, and i pointed it to a javascript function, that was already in the example code

  function createSingleSelectEditor(placeholder, options) {

                var dropDownElement = $(placeholder).html('<div></div>');
                var parameter,
                      valueChangedCallback = options.parameterChanged,
                      dropDownList;

                function onChange() {
                    var val = dropDownList.value();
                    valueChangedCallback(parameter, val);
                }

                return {
                    beginEdit: function (param) {

                        parameter = param;

                        $(dropDownElement).kendoDropDownList({
                            dataTextField: "name",
                            dataValueField: "value",
                            value: parameter.value,
                            dataSource: parameter.availableValues,
                            change: onChange
                        });

                        dropDownList = $(dropDownElement).data("kendoDropDownList");
                    }
                };
            }

‚Äč

0
karthick
Top achievements
Rank 1
answered on 19 Sep 2017, 11:11 AM

Hi Team,

 

is this requirement can be implemented for telerik raddropdown list, we don't have kendoDropDownList.

please let us know at the earliest, we need to have multicheckboxdropdown instead for listbox.

please let me know how reach you for urget help.

0
Katia
Telerik team
answered on 19 Sep 2017, 02:56 PM
Hello karthick,

Check this post in another forum thread that you opened.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Rich
Top achievements
Rank 1
Answers by
Stef
Telerik team
HZ
Top achievements
Rank 1
karthick
Top achievements
Rank 1
Katia
Telerik team
Share this question
or