Articles in this section

Change Parameter Drop-down Height and Width in Bold Reports

Published:
Updated:

To change the parameter drop-down size in the Bold Reports Report Viewer, set the parameterSettings property with popupHeight and popupWidth when you initialize the viewer. These values control the height and width of each parameter drop-down (the multi-value combo box) in the parameter panel.

When to use this

Use this when a parameter drop-down is too small or too large for its values. For example, a long list of items that needs more height, or short values that leave the drop-down wider than it needs to be. This applies to the embedded Report Viewer. The size is set in your viewer initialization code, not in the Report Designer.

Steps

  1. Open the code where you initialize the Report Viewer. This is the boldReportViewer call for the JavaScript API, or the component configuration for a framework viewer.
  2. Add the parameterSettings property to the viewer options.
  3. Set popupHeight to the drop-down height you want, in pixels, for example “200px”.
  4. Set popupWidth to the drop-down width you want, in pixels, for example “150px”.
  5. Save the file and reload the page that hosts the viewer.

The property names are case-sensitive. Use the exact casing parameterSettings, popupHeight and popupWidth.

$("#viewer").boldReportViewer({
    parameterSettings: {
        popupHeight: "200px",
        popupWidth: "150px"
    }
});

Result

Each parameter drop-down in the parameter panel opens at the height and width you set. Values that previously overflowed now fit within the popup size you defined.

Syntax for other platforms

The parameterSettings option is available on every supported Report Viewer platform: JavaScript, Angular, React, Blazor, ASP.NET Core, ASP.NET MVC and ASP.NET Web Forms. Use the documentation for your platform for the exact syntax:

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied