Parameter custom properties

Parameter custom properties in the Bold Reports® ASP.NET Web Forms Report Viewer customize how report parameters appear in preview, such as drop-down size, date and time pickers, and the parameter block.

How do I show only distinct values in a parameter?

To show only unique values in a parameter drop-down, set the UniqueValueParameters custom property in the Report Viewer. A parameter created with data set query values may contain duplicate values, and UniqueValueParameters shows only unique values while viewing the report, without creating a new data set. The following image shows the property setting option.

You can also provide the parameter names with comma (,) separator to set for multiple parameters.

Shows configuration of unique value parameter property in report parameter dialog

Preview the report to see the unique values in the parameter drop-down.

Preview of unique value parameter values in Report Viewer

How do I change the drop-down parameter popup height?

To change the height of the parameter combobox popup list in the Report Viewer, set the PopupHeight custom property. By default, the PopupHeight value is 152px. You can set the PopupHeight property value.

Shows configuration of pop up height property in custom property dialog

Preview the report to see the popup height in the parameter drop-down.

Preview of pop up height in parameter values in Report Viewer

How do I change the drop-down parameter popup width?

To change the width of the parameter combobox popup list in the Report Viewer, set the PopupWidth custom property. By default, the popup width sets based on the width of the component. You can set the PopupWidth property value.

Shows configuration of pop up width property in custom property dialog

Preview the report to see the popup width in the parameter drop-down.

Preview of pop up width in parameter values in Report Viewer

How do I set the minimum date for a date parameter?

To set the minimum date in a datetime parameter item in the Report Viewer, use the MinDateTime custom property. By default, the MinDateTime value is set as null. You can set the MinDateTime property value.

Shows configuration of minininum date property in custom property dialog

Preview the report to see the minimum date in the datetime parameter drop-down.

Preview of minimum date in date parameter in Report Viewer

How do I set the maximum date for a date parameter?

To set the maximum date in a datetime parameter item in the Report Viewer, use the MaxDateTime custom property. By default, the MaxDateTime value is set as null. You can set the MaxDateTime property value.

Shows configuration of maximum date property in custom property dialog

Preview the report to see the maximum date in the datetime parameter drop-down.

Preview of maximum date in date parameter in Report Viewer

How do I hide the report parameter block?

To hide the parameter block on initial report rendering in the Report Viewer, use the HideParameterBlock custom property. The property value should be boolean. By default, the HideParameterBlock value is false. You can set the HideParameterBlock property value.

Shows configuration of hide parameter block property in custom property dialog

Preview the report to see that the parameter block is hidden.

Preview of hide parameter block in Report Viewer

How do I set the date and time format for a parameter?

To set the date time format displayed in the DateTimePicker popup in the Report Viewer, use the DateTimeFormat custom property. By default, the DateTimeFormat value is set as empty. You can set the DateTimeFormat property value.

Shows configuration of date time format property in custom property dialog

Preview the report to see the date time format in the datetime parameter.

Preview of date time format in date parameter in Report Viewer

How do I change the time display format for a parameter?

To change the time format displayed in the time drop-down inside the DateTimePicker popup in the Report Viewer, use the TimeDisplayFormat custom property. You must set the DateTimePickerType custom property as DateTime before setting the TimeDisplayFormat. By default, the TimeDisplayFormat value is set as empty. You can set the TimeDisplayFormat property value.

Shows configuration of time display format property in custom property dialog

Preview the report to see the time format in the datetime parameter.

Preview of time format in date parameter in Report Viewer

How do I set the time interval in a datetime parameter?

To set the interval between two adjacent time values in the DateTimePicker popup in the Report Viewer, use the TimeInterval custom property. You must set the DateTimePickerType custom property as DateTime before setting the TimeInterval. By default, the TimeInterval value is set as 30. You can set the TimeInterval property value.

Shows configuration of time interval property in custom property dialog

Preview the report to see the time interval in the datetime parameter.

Preview of time interval in date parameter in Report Viewer

How do I enable filtering and searching in a drop-down parameter?

To enable search and filtering in a drop-down parameter in the Report Viewer, set the EnableFilterSearch custom property, which helps users find values easily. The property value should be boolean. By default, the EnableFilterSearch value is false. You can set the EnableFilterSearch property value.

Shows configuration of enabling filter search property in custom property dialog

Preview the report to see the search filter in the parameter.

Preview of enable search filter in parameter in Report Viewer

How do I display a date time picker for a date parameter?

To display a DateTimePicker for value selection in a date parameter item in the Report Viewer, set the DateTimePickerType custom property value to DateTime. You can set the DateTimePickerType property value.

Shows configuration of datetime picker type property in custom property dialog

Before you enable the date time picker type, the parameter uses the default value.

Preview of default value of date time picker Report Viewer

Enable the date time picker type to see the time in the DateTimePicker.

Preview of date time picker type after setting as datetime in Report Viewer

How do I enable popup resize in a drop-down parameter?

To enable the popup resize option in a drop-down parameter in the Report Viewer, set the EnablePopupResize custom property, which adjusts the size of the drop-down in EJ1. The property value should be a Boolean. By default, the EnablePopupResize value is false. You can set the EnablePopupResize property value.

Shows configuration of enabling popup re-size property in custom property dialog

Preview the report and see the popup resize option in the parameter.

Preview of enable popup resize in parameter in Report Viewer

How do I change the parameter block position?

To change the position of the parameter block in the classic view of the Report Viewer, set the ParameterBlockPosition custom property. The property accepts the following values:

Right - Displays the parameter block on the right side of the report. Left - Displays the parameter block on the left side of the report. Top - Displays the parameter block at the top of the report. Bottom - Displays the parameter block at the bottom of the report.

Shows configuration of ParameterBlockPosition property in custom property dialog

Set the ParameterBlockPosition property to see the parameter position in the following output.

Preview of ParameterBlockPosition as left in Report Viewer

How do I set the width of a parameter item?

To set the width of a parameter item in the Report Viewer, use the ItemWidth custom property. By default, the item width value is set as 185px. You can increase or decrease the width of the parameter item as needed.

Shows configuration of Item Width property in custom property dialog

Preview the report and see the width of the parameter.

Preview of date time format in date parameter in Report Viewer

How do I change the first day of the week in the calendar?

To change the first day of the week in the Report Viewer parameter calendar, set the WeekStartDay property. Generally, the days of the week are numbered from 0 (Sunday) to 6 (Saturday).

By default, the first day of the week is determined by the culture settings.

Shows configuration of Week Start Day property in custom property dialog

Enable the WeekStartDay property to set your preferred start day, and see the calendar updated.

Preview of Week Start Day in Report Viewer

How do I mark a parameter as mandatory?

To mark a parameter as mandatory in the Report Viewer, use the ShowRequiredFieldIndicator custom property, which indicates that the parameter must have a non-blank value to be valid. The property’s value should be Boolean. By default, the ShowRequiredFieldIndicator value is false.

You can set the ShowRequiredFieldIndicator property value.

Shows configuration of enabling required field property in custom property dialog

Preview the report and see the required field in parameter.

Preview of enable required field in parameter in Report Viewer

How do I enable or disable the parameter block scroller?

To enable or disable the scroller for the parameter block in the Report Viewer, set the EnableParameterBlockScroller custom property. The property’s value should be Boolean. By default, the EnableParameterBlockScroller value is true.

You can set the EnableParameterBlockScroller property value.

Shows configuration to enable parameter scroller property in custom property dialog

Before disabling the parameter scroller, the default value will be displayed.

Preview of default value of parameter scroller in Report Viewer

Disable the parameter scroller and see the output.

Preview of date time picker type after setting as datetime in Report Viewer

How do I set the start view of a date parameter?

To set the initial view of a datetime parameter item in the Report Viewer, use the DateStartLevel custom property. By default, the DateStartLevel value is set as Month.

Year - Displays the months in a year Decade - Displays the years in a decade

You can set the DateStartLevel property value.

Shows configuration of DateStartLevel property in custom property dialog

By default, the DateStartLevel is set as Month.

Preview of default date start level in Report Viewer

Preview the report to see the DateStartLevel set to Decade in the datetime parameter.

Preview of date start level as decade in Report Viewer

How do I set the depth view of a date parameter?

To set the maximum level of a datetime parameter item, such as Month, Year, and Decade in the calendar, use the DateDepthLevel custom property in the Report Viewer. The depth view should be smaller than the start view to restrict its view navigation. By default, the DateDepthLevel value is set as Month.

You can set the DateDepthLevel property value.

Shows configuration of DateDepthLevel property in custom property dialog

Preview the report to see the DateDepthLevel set to Year in the datetime parameter.

Preview of date depth level as Year in Report Viewer

How do I keep the selection order in multi-select parameters?

To maintain the order in which users select items in the Report Viewer, use the EnableSelectionOrder custom property. By default, the value of EnableSelectionOrder is set to true, which means the selected items in a MultiSelect dropdown will be displayed in the top.

You can set the EnableSelectionOrder property:

Shows configuration of enabling selection order property in custom property dialog

Before disabling the selection order, the default value will be displayed.

Preview of default value of selection order in Report Viewer

Preview the report and check the selection order in the parameter list.

Preview of selection order after disabling in Report Viewer

How do I display selected values in multi-select parameters?

To display the selected values in the MultiSelect input box in the Report Viewer, set the DropdownShowSelectedValues custom property. By default, the value of DropdownShowSelectedValues is set to false, which means the input box displays only the number of selected items in a MultiSelect dropdown

You can set the DropdownShowSelectedValues property:

Shows configuration of enabling dropdownselectedvalue property in custom property dialog

Before enabling this property, the default value will be displayed:

Preview of default value of dropdownselectedvalue in Report Viewer

After enabling the property, preview the report to see the selected values displayed in the parameter list:

Preview of selected value after enabling dropdownselectedvalue in Report Viewer