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

Turn Report Parameter list of data into a DropDown

1 Answer 865 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 23 Jan 2020, 10:55 PM

 

Hello,

I wanted to know how to set the parameters datasource list to appear as a dropdown and not the way they are showing in the attached image. I don't see any kind of option to make it a dropdownlist as I thought this was default behavior.

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 28 Jan 2020, 08:11 AM

Hello Marcus,

In the Html5 Viewer you may set the option parameters -> editors ->singleSelect and multiSelect to "COMBO_BOX" - check Report Viewer Initialization for more details. The default mode is "LIST_VIEW". Here is sample code:

$("#reportViewer1").telerik_ReportViewer({
	...
     parameters: {
         editors: {
             singleSelect: telerikReportViewer.ParameterEditorTypes.COMBO_BOX,
             multiSelect: telerikReportViewer.ParameterEditorTypes.COMBO_BOX
         }
     },
    ...
});

Regards,
Todor
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
Marcus
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or