I want telerik-reporting call angularjs
I've added the following libraries:Telerik.Reporting.dll,Telerik.Reporting.Services.WebApi.dll,Telerik.Reporting.XpsRendering.dll,Telerik.ReportViewer.Mvc.dll
file js:
$('#ReportViewer1').telerik_ReportViewer(
{
error: function (data) {
alert(data);
},
reportSource: {
report: '/Reports/Dashboard.trdx'
},
serviceUrl: '/api/reports/',
templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate.html',
ready: function () {
this.refreshReport();
}
});
ReportsController:
protected override IReportResolver CreateReportResolver()
{
var reportsPath = HttpContext.Current.Server.MapPath("~/Reports");
return new ReportFileResolver(reportsPath)
.AddFallbackResolver(new ReportTypeResolver());
}
protected override ICache CreateCache()
{
return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache();
}
Global.cs:
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
protected override void Application_Start(object sender, EventArgs e)
{
IocManager.Instance.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
ReportsControllerConfiguration.RegisterRoutes(GlobalConfiguration.Configuration);
base.Application_Start(sender, e);
}
but its not working
who can help me
thanks a lots.