Turn Report Parameter list of data into a DropDown

2 posts, 0 answers
  1. Marcus
    Marcus avatar
    4 posts
    Member since:
    Sep 2019

    Posted 23 Jan Link to this post

     

    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.

     

  2. Todor
    Admin
    Todor avatar
    451 posts

    Posted 28 Jan Link to this post

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