|
Query |
Response | |||
|
Thank you for your reply. After looking at your sample, I can get the parameter display in the report viewer. However, I have some parameter in my reports that are in text and datetime types. When I don't provide a default value and available values, the parameters displayed as dropdown. Is there any reason that the parameters failed to display as a date picker for datetime type and a textbox for text type?
I have added a text type parameter to the sample report you have sent me. The added parameter can show up as textbox in the preview in the report designer. However, it becomes a dropdown when I run it in the sample.
|
We are able to reproduce the reported issue. This issue has been already fixed in our 2018 Volume 3 SP1 release version 16.3.0.29 and please upgrade to this version to resolve this issue.
Please find the download link of 2018 Volume 3 SP1 release version,
https://www.syncfusion.com/forums/140650/essential-studio-2018-volume-3-service-pack-release-v16-3-0-29-available-for-download | |||
|
A second question, is there a way to pass parameter value to the report by code in Asp.Net Core? |
We can achieve your requirement using setModel option to set parameters property of Report Viewer control if you are using RDL report with processing mode as Remote as shown in below,
Index.cshtml
If you are using RDLC report with datasource processing locally, we can achieve your requirement by passing the value from client to server side by using the ajax-before-load event as shown in below code example,
Index.cshtml
Then you can receive the parameters in PostReportAction WebAPI controller in CustomData attribute and store in variable and access in Report Loaded as shown in below,
WebAPI Controller:
Please find the simple sample with parameter values passed to the report from below location,
|