ReportViewer Navigation

7 posts, 0 answers
  1. Derek
    Derek avatar
    3 posts
    Member since:
    May 2011

    Posted 19 Jan 2012 Link to this post

    I am having trouble using the navigation with the Telerik.ReportViewer.WPF Q3 2011.  I am using the MVVM design pattern and passing a reference of the reportviewer to the viewmodel.  In response to a click event a customer dataobject is constructed and populated and feed as the data source to a new distribution report.  The new distribution report is then set as the value for the reportviewer.  However as different versions of the report are ran they are not viewable through the navigation buttons.  How can I accomplish this?

     

    var products = Products.Where(x => x.IsSelected);

    Custom business object

    DistributionCompilation distribution = new DistributionCompilation();

    Populating the business object

    distribution.BuildSingleBrandDistributionRport(products, SelectedStart, SelectedEnd, MinBottles, NoBuyPeriod, SelectedBrand.Name);

    Setting it as the source for the report

    NewDistributions distribution_report = new NewDistributions();

    distribution_report.DataSource = distribution.ShowReport();

    _View.Report = distribution_report;


  2. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 24 Jan 2012 Link to this post

    Hi Derek,

    The navigation buttons are used to navigate between the pages in the current report and not between reports. If you need navigation between reports you can add them to a Report Book, more information you can find in our Report Book help article.

    Regards,
    IvanY
    the Telerik team

    Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

  3. DevCraft banner
  4. Malcolm
    Malcolm avatar
    15 posts
    Member since:
    Dec 2011

    Posted 13 Nov 2012 Link to this post

    Hello! I am wondering if there is a page navigation event I can utilize. I have a need to update the parameters on a sub-report based on the page displayed in the main report. Being able to update my parameters as the user flips pages would be ideal.

    Thanks!

    Malcolm

  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 16 Nov 2012 Link to this post

    Hi Malcolm,

    What you want to achieve would happen automatically if you have wired the SubReport as detail report i.e. it would get the value of each record from the master result set and display value accordingly. See How-To: Creating Master-Detail Reports Using SubReports help article for more information.

    All the best,
    Steve
    the Telerik team

    HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  6. Malcolm
    Malcolm avatar
    15 posts
    Member since:
    Dec 2011

    Posted 16 Nov 2012 Link to this post

    Steve - thanks so much for the help. I actually found that article a couple days ago and was able to get things going as I wanted except I am having an issue with one of my subreports. When I run it as a stand alone report, it shows data as expected, but if I stick into a master report as a subreport...I refuses to return any data. Any suggestions?
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Nov 2012 Link to this post

    Hi Malcolm,

    Most likely it does not receive data from the master report. Check that the Parameters property of the SubReport is correctly wired so that its report parameter has as value a field from the master report.

    Kind regards,
    Steve
    the Telerik team

    HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  8. Malcolm
    Malcolm avatar
    15 posts
    Member since:
    Dec 2011

    Posted 28 Nov 2012 Link to this post

    Steve - I found a solution to my problem and posted it here; http://www.telerik.com/community/forums/reporting/telerik-reporting/subreport-will-not-show-any-data-but-shows-data-as-a-stand-alone.aspx#2393020 for others to see.

    Thanks everyone! Great product!

    Malcolm
Back to Top
DevCraft banner