Integrating the DateTimePicker Widget in the Native Blazor Report Viewer
Environment
Product | Progress® Telerik® Reporting |
Project Type | Blazor |
Report Viewer | Native Blazor |
Description
By default, the Native Blazor Report Viewer uses the Telerik Blazor UI DatePicker widget when displaying Report Parameters of Type
DateTime
.
If you wish to display also the Time
, the Telerik Blazor UI DateTimePicker widget can be implemented as a custom parameter editor for parameters of type DateTime
. This will allow you also to edit the time.
Solution
<ReportViewer ... >
<ParameterDateTimeTemplate>
<TelerikDateTimePicker Value="@((DateTime)context.Value)"
ValueChanged="@((DateTime value) => context.Value = value)">
</TelerikDateTimePicker>
</ParameterDateTimeTemplate>
</ReportViewer>