My script never reaches to the second alert i.e. alert("hi1"). I think there is some problem with my ig.loader any helps??
I have this Report1.igr report that I am trying to display on this Repot.cshtml page but nothing appears except the heading
//
alert("hi") $.ig.loader({ scriptPath: "@Url.Content("~/Scripts/Infragistics")", cssPath: "@Url.Content("~/Content/Infragistics/")", resources: "igReportViewer" }); alert("Hi 1");
$.ig.loader(function () { alert("hi 2"); $("#report").igReportViewer({ height: 600, renderSettings: { definitionUri: 'ReportingClassLibrary;component/Report1.igr', serviceEndpointUri: "ReportService.svc/ajaxAddress/" } }); });
I Have changed a few things on this i.e. the path to the scripts seemed incorrect. But now the errors that I am getting are.
Uncaught TypeError: Cannot read property 'bulkDefine' of undefined :65463/js/scripts/modules/infragistics.dv.core.js:14Uncaught TypeError: undefined is not a function :65463/js/scripts/modules/infragistics.ui.chartlegend.js:16Uncaught TypeError: undefined is not a function :65463/js/scripts/modules/infragistics.ui.chart.js:24Uncaught TypeError: Cannot read property 'bulkDefine' of undefined :65463/js/scripts/modules/infragistics.chart_categorychart.js:14Uncaught TypeError: Cannot read property 'bulkDefine' of undefined :65463/js/scripts/modules/infragistics.chart_financialchart.js:14Uncaught TypeError: Cannot read property 'igReportViewerConstants' of undefined infragistics.ui.reportviewer.js:1Uncaught TypeError: undefined is not a function Report:68
While Viewing in the browser's Inspect item.
Hello Khatkar,
I was not able to reproduce this behavior. Could you please send a sample for investigation if possible ?
Looking forward to hearing from you.
Thank you Mr. Hristo for taking time out to reply.
The following is the code that of my cshtml file where I am trying to display a report(Report1.igr). When I view this in browser(chrome) and go to inspect element I see the errors as I have posted. (related to )
Uncaught TypeError: Cannot read property 'bulkDefine' of undefined
Uncaught TypeError: undefined is not a function
<html>
<head>
<title></title>
<script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-2.6.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/js/scripts/infragistics.loader.js")" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
$.ig.loader({
scriptPath: "@Url.Content("~/js/scripts")",
cssPath: "@Url.Content("~/js/css")",
resources: "igReportViewer"
});
$.ig.loader(function () {
$("#report").igReportViewer({
height: 600,
renderSettings: {
definitionUri: 'ReportingClassLibrary;/Report1.igr',
serviceEndpointUri: "ReportService1.svc/ajaxAddress/"
}
alert("hi 2");
</script>
<div id="report"></div>
</body>
</html>
I am still not able to reproduce the errors you receive. It is possible that not all the necessary resources are successfully loaded. I suggest that you check /js folder and refer to the help document about Adding the required resources for the igReportViewer if you need assistance on how to do it.
It is also possible to
1) load the resources from the CDN - please check Infragistics Content Delivery Network (CDN) for Infragistics Reporting
or
2) use the combined CSS and/or JavaScript files and look for the Referencing combined CSS and JavaScript files section.
If all the resources are properly loaded and issue still persists please try to isolate it in a sample and send it for investigation.
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
I am closing this case now. If you need any additional assistance with this case feel free to post here and I will reopen it for you.
Thank you for choosing Infragistics components
That is ok. I will leave this thread open in case you need to post here.
Thank you
But I have not been working on it.
I will surely ask you again if I needed help.