I want to open Telerik Report inside Telerik Window and also i want to fetch report view to another view ?
I also tried in my application I used Telerik().Window() inside Telerik().ReportView but then my js files crushed? I tried to create window from javascript but then myWindow undefined?
How can i do this?
Dou you have any idea or suggestion for it?
Thanks!
After some trials and read some articles i found how to open Telerik Report Viewer in Telerik Window
I just put my js and css files on my page and then basically i put my reporting codes inside window content and it works!!!
Here codes
@{ Html.Telerik().Window()
.Name("Reportwin")
.Title("Report")
.Buttons(b => b.Close())
.Content(@<text>
@{
UriReportSource trial = new UriReportSource();
trial.Uri = "Report.trdx";
trial.Parameters.Add("Id", Session["Id"].ToString());
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.TemplateUrl("/Reports/templates/telerikReportViewerTemplate.html")
.ReportSource(trial)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(false)
)
</text>)
.Modal(true)
.Visible(false)
.Draggable(true)
.Width(1300)
.Height(700)
.Resizable()
.Render();
}