We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Uncaught ejReportViewer: methods/properties can be accessed only after plugin creation

Thread ID:

Created:

Updated:

Platform:

Replies:

121062 Nov 7,2015 05:11 AM UTC Nov 9,2015 11:06 AM UTC ASP.NET MVC 1
loading
Tags: ReportViewer
vijay pratap
Asked On November 7, 2015 05:11 AM UTC

I am opening a Report Viewer Control in my a Modal pop up .

The Code is as shown 

 @using ReportViewerForMvc;
    @using Syncfusion.MVC.EJ;
    @using Syncfusion.JavaScript;

    <link rel='nofollow' href="@Url.Content("~/Content/ej/web/Default-theme/ej.widgets.all.min.css")" rel="stylesheet" />
     <script src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jsrender.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.easing.1.3.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.globalize.min.js")"></script>
    <script src="@Url.Content("~/Scripts/ej/ej.web.all.min.js")"></script>
    <script src="@Url.Content("~/Scripts/ej/ej.unobtrusive.min.js")"></script>
   

    <div id="rptContainer" style="height: 650px;width: 900px;min-height:404px; overflow-y:hidden">
        @(Html.EJ().ReportViewer("reportviewer").ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote)
               .ReportServiceUrl(@Url.Content("~/api/ReportAPI")).Parameters(param =>
               {
                   param.Name("UserId").Values(new List<string> { Convert.ToString(ViewBag.UserId) }).Add();
               })
           .ReportServerUrl(Convert.ToString(ViewBag.ServerUrl))
            .ReportPath(Convert.ToString(ViewBag.ReportPath)))
    </div>
    <p class="pull-right">
        <input class="btn btn-success" type="button" id="btnClose" value="CLOSE">
    </p>
    
    @Scripts.Render("~/bundles/bootstrapOnly")

    @*<script>
        $(function () {
            $("#rptContainer").ejReportViewer({
                reportServiceUrl: "../api/ReportAPI",
                processingMode: ej.ReportViewer.ProcessingMode.Remote,
                reportPath: "/hydServerReports/Reports/Total_Reported",
                reportServerUrl: "http://hydlab01sql/ReportServer/"
            });
        });
        </script>*@
    @(Html.EJ().ScriptManager())

The modal pop opens well for the first time well, but after the second time it Show error as logged in Browser network tab 
Please find the attachment 

Attachment: ReportViewerError_903a8b1.zip

Venkatesan Pandian [Syncfusion]
Replied On November 9, 2015 11:06 AM UTC

Hi Vijay

We have updated the details regarding this in your incident and please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Venkatesan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;