Can't Change Dropdown Format

2 posts, 0 answers
  1. Cory
    Cory avatar
    3 posts
    Member since:
    Aug 2011

    Posted 18 Oct Link to this post

    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.
  2. Neli
    Admin
    Neli avatar
    190 posts

    Posted 21 Oct Link to this post

    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
Back to Top