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

Can't Change Dropdown Format

1 Answer 202 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cory
Top achievements
Rank 1
Cory asked on 18 Oct 2019, 07:33 PM
I'm using the standalone report designer with an ASP.NET MVC C# website.  My issue is that when I add a single select or multi select parameter, it always shows up in a list box instead of a dropdown.  Does anyone know if there's an option to display the parameter as a dropdown instead?  I've seen demos with normal dropdowns but I just can't find the option to change it.  I've attached a picture of the list box I'm referring to.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 21 Oct 2019, 01:44 PM

Hi Cory,

The approach to replace the list with a dropdown in the MVC report viewer is described in the How To: Change Parameter Editors Type help article. The parameters editors types are defined through the Parameters method when creating the Telerik Report Viewer widget. For example:
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports/"))
.ReportSource(new TypeReportSource() { TypeName = typeof(ReportCatalog).AssemblyQualifiedName })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.EnableAccessibility(false)
.SearchMetadataOnDemand(false)
.Parameters(new Parameters { Editors = new Editors { SingleSelect = EditorTypes.ComboBox} })
.Deferred()

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