MvcReportViewer icon indicating copy to clipboard operation
MvcReportViewer copied to clipboard

In report datetime parameter changes in text parameter

Open Islamidin opened this issue 7 years ago • 3 comments

I have a report with a parameter which has data type date/time. I don't use default or available values for this parameter. When i open report preview this parameter has a calendar button. Same thing in reportserver. But when I open this report in my MVC project it shows without this button, so it seems like a simple text parameter. It can work with date what I write in, but it very uncomfortable to users. In html this input has type "text". Please help with this issue.

Islamidin avatar Jan 18 '18 11:01 Islamidin

Please try to create simple Web Forms application and open your report there. MVC helper is just a wrapper around the control. If the control works in web forms app than check if you have any JS error on your MVC page. It might be the case that some JS is broken and it cases the failure or ReportViewer's scripts.

Please let me know if there is a bug in the helper, and I will add the fix to the library.

Unfortunately, I do not have more information at the moment to provide better recommendation.

ilich avatar Jan 22 '18 18:01 ilich

I have this same issue - works locally in all browsers, but doesn't work in Chrome or Edge when run on the server - date picker icon is missing and date field rendered as plain text. If I bypass your library and use the DLL directly in an ASP.NET Webform, it works fine.

InLoop-TOCA avatar Oct 22 '18 01:10 InLoop-TOCA

FWIW, we had this problem and found that referencing the correct v11 Microsoft.ReportViewer.WebForms.dll fixed the problem. We were using a reference to the nuget package Microsoft.Report.Viewer v11 (which had an older version from 2013). Updating to the package Microsoft.ReportViewer.2012.Runtime brought us to the same version that Ilich has in source control, i.e. 11.0.3452.0

BilThomas avatar Jan 17 '23 21:01 BilThomas