How to Change Date Format of Report Parameters of DateTime Type in report Parameter Panel?

0 Answers 4 Views
Telerik Trainer
Prabesh
Top achievements
Rank 1
Iron
Iron
Prabesh asked on 26 May 2025, 08:44 AM

Hi Telerik Team,

I'm using Telerik Reporting in an ASP.NET MVC application. I have a generic helper method to configure the Telerik Report Viewer using a UriReportSource. Here's the function:

public static class ReportExtension { public static IReportViewerBuilder GetReportViewerConfig(this HtmlHelper htmlHelper, string reportId, string reportSource, Dictionary<string, string> reportParams) { var uriReportSource = new UriReportSource { Uri = reportSource }; foreach (var param in reportParams) { uriReportSource.Parameters.Add(param.Key, param.Value); } return htmlHelper.TelerikReporting().ReportViewer() .Id(reportId) .ReportServer(new ReportServer() { Url = ReadConfigData.REPORT_SERVER_URL, Username = ReadConfigData.REPORT_SERVER_USERNAME, Password = ReadConfigData.REPORT_SERVER_PASSWORD }) .ReportSource(uriReportSource) .ViewMode(ViewMode.Interactive) .ScaleMode(ScaleMode.FitPageWidth) .PersistSession(false) .SendEmail(new SendEmail { Enabled = true }) .Parameters(new Parameters { Editors = new Editors { MultiSelect = EditorTypes.ComboBox, SingleSelect = EditorTypes.ComboBox } }) .EnableAccessibility(false); } }

The Problem:

I'm using DateTime parameters (e.g., dateFrom, dateUntil) in my reports, and they appear in the report

parameter panel with the format MM/dd/yyyy. I want to show these dates as dd/MM/yyyy.

 



My Questions:

1. Is it possible to customize the display format (e.g., dd/MM/yyyy) of DateTime parameters in the parameter input panel?

2. If not, is there any workaround — such as setting culture explicitly for the viewer?

Regards,

Prabesh Shrestha


No answers yet. Maybe you can help?

Tags
Telerik Trainer
Asked by
Prabesh
Top achievements
Rank 1
Iron
Iron
Share this question
or