I am having an issue getting my controller code to get called from the UI. Here is what I have tried.
<script type="text/javascript">
$(document).ready(function () {
$("#pdfViewer").kendoPDFViewer({
fromFile: {
url: "@Url.Action("DetailsReport", "ReportViewer")"
}
});
});
</script>
--RAZOR PAGE
@(Html.Kendo().PDFViewer()
.Name("pdfViewer")
)
Controller ActionMethod (never gets called).
returns File(bytes, mimeType).