<script>
function openDialog() {
$("#dialog").ejDialog("open");
}
</script>
<body>
@{
Html.EJ()
.Button("button")
.Text("Open Report")
.Type(ButtonType.Button)
.ClientSideEvents(evt => evt.Click("openDialog"))
.Render();
}
@{
Html.EJ()
.Dialog("dialog")
.Title("Dialog")
.ShowOnInit(false)
.MinWidth("800px")
.Height("700px")
.MinHeight("750px")
.ContentTemplate(@<div style="width:100%; height:100%; position:absolute;">
@(Html.EJ().ReportViewer("reportsample")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local)
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi"))
.ReportPath("~/App_Data/GroupingAggregate.rdlc")
)
</div>)
.Render();
}
</body>
<style type="text/css">
html, body {
overflow: hidden;
padding: 0;
margin: 0;
height: 100%;
position: static;
}
#reportsample {
width: 750px;
height: 700px;
position: absolute;
}
</style>* |