ilich / MvcReportViewer

ASP.NET MVC Html Helpers for ReportViewer Control.
MIT License
282 stars 131 forks source link

In report datetime parameter changes in text parameter #218

Open Islamidin opened 6 years ago

Islamidin commented 6 years ago

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.

ilich commented 6 years ago

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.

InLoop-TOCA commented 5 years ago

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.

BilThomas commented 1 year ago

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