WPF Report Viewer Save combobox

4 posts, 0 answers
  1. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 09 Sep 2011 Link to this post

    When I use the save dropdown to save a report in a format such as excel, the drop down data continues to show even after the report has been saved.  The only way to get rid of it is to close the window.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Sep 2011 Link to this post

    Hello David,

    We have not been able to reproduce such problem on our end (see attached video), so there must be something specific on your end that is causing this problem e.g. modified WPF viewer template. If the problem persists, please open a support ticket and attach a sample that exhibits the problem so we can advise you.

    Greetings,
    Steve
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 12 Sep 2011 Link to this post

    Yes, that video is how I would expect it to work.  I think one thing I am doing differently is I'm putting it in a RadWindow.  Could that be the problem?  My code is below

                Telerik.Windows.Controls.RadWindow w = new Telerik.Windows.Controls.RadWindow();
                Telerik.ReportViewer.Wpf.ReportViewer viewer = new Telerik.ReportViewer.Wpf.ReportViewer();
                w.Content = viewer;
                Reports.FLCWhatIfReport report = new Reports.FLCWhatIfReport();
                Csla.Xaml.TriggerAction ta = sender as Csla.Xaml.TriggerAction;
     
                w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                w.Width = 650;
                w.Height = 500;
     
                if (ta != null)
                    w.Owner = UIHelpers.FindLogicalRoot(ta) as Window; 
     
     
                App app = ((App)App.Current);
                report.DataSource = this.Model.Where(m => m.TimePeriod == app.TimePeriod.PeriodValue
                                && m.Region == app.Region.ToString());
                viewer.Report = report;
     
                w.ShowDialog();
    
  5. Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 15 Sep 2011 Link to this post

    Hello David,

    We have managed to reproduce the issue locally and can confirm that the problem is because the report viewer is shown in a RadWindow. We will need some time to investigate why this exactly happens and suggest a workaround or fix it for one of the subsequent releases. A possible solution is to extract the ReportViewer's control template with MS Expression Blend and replace the combo box. We are sorry for the the inconvenience.

    Kind regards,
    Chavdar
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top