Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8943855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:53:23+00:00 2026-06-15T11:53:23+00:00

I set up my reporting page so that it all just rendered out and

  • 0

I set up my reporting page so that it all just rendered out and had no problems at all, everything worked dandy :).

Now the problem comes when I want to render the report when the Run Report button is clicked. This still renders fine, but the toolbar and viewer are not hooked up properly. When I click any of the page navigation buttons (Not the “Go To beginning/end ones) I get a NaN error from the current page index. Now this stuff is auto generated when the report viewer partial is rendered, and as the toolbar is already rendered it seems to have a problem picking it up. Here is my index and ajax call for your reference to see if anyone can help.

<h2>Basic Error Report</h2>
@Html.Partial("_BasicErrorReportFilters")

<input type="button" value="RunReport" id="runReportBtn" onclick="RunReport()"/>
@Html.DevExpress().ReportToolbar(settings =>
    {
        settings.Name = "ReportViewerToolbar";
        settings.ReportViewerName = "reportViewer1";
    }).GetHtml()
<div id="reportDiv"></div>

Ajax Call:

$.ajax({
            type: "POST",
            url: '@Url.Action("ReportViewerPartial", "BasicError")',
            data: queryString,
            statusCode: {
                200: function (r) {

                    $('#reportDiv').html(r);
                    var dxo = new ClientReportToolbar('ReportViewerToolbar');
                    window['ReportViewerToolbar'] = dxo;
                    dxo.menuID = 'ReportViewerToolbar_Menu';
                    dxo.reportViewerID = 'reportViewer1';

                    dxo.InlineInitialize();

                },
                400: function(r) {

                },
                500: function(r) {

                }
            }
        });

    }

You’ll see that I am re initializing the toolbar in the javascript. Before I put that in, the toolbar would not pick up the viewer at all.

Funilly, once I have had the NaN error, I can use the go to beginning and end buttons properly, and once I have used one of those, all of the navigation/export/print buttons work fine. Thanks in advance for any help.

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:53:25+00:00Added an answer on June 15, 2026 at 11:53 am

    I found the issue.

    It seems that when reinitializing, having this bunch of code:

     var dxo = new ClientReportToolbar('ReportViewerToolbar');
                        window['ReportViewerToolbar'] = dxo;
                        dxo.menuID = 'ReportViewerToolbar_Menu';
                        dxo.reportViewerID = 'reportViewer1';
    

    In that code block doesn’t work, but moving it outside of that block and just having dxo.initialize in there does.

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have discovered that in SQL Reporting there might be a problem. I have
I have set up a linear gauge in Reporting Services 2008. What I would
I'm trying to setup Microsoft reporting on a shared hosted server. I've set up
in my app i am recording speech so that i need to set up
I am working with Zend framework and just hate the fact that I seem
I have Reporting Services set up with Forms Authentication. Our app is sitting over
I've got a problem that for a website I'm administering, users are getting a
I have a html page that calls a php object to get some data
Im having problems with my php SESSION varialbles my authentication system worked fine on
I got the application below from this page so that I can test character

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.