This is a migrated thread and some comments may be shown as answers.

WPF Report Viewer Save combobox

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Brenchley
Top achievements
Rank 1
David Brenchley asked on 09 Sep 2011, 11:56 PM
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.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Sep 2011, 10:13 AM
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 >>

0
David Brenchley
Top achievements
Rank 1
answered on 12 Sep 2011, 04:16 PM
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();
0
Chavdar
Telerik team
answered on 15 Sep 2011, 05:15 PM
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 >>

Tags
General Discussions
Asked by
David Brenchley
Top achievements
Rank 1
Answers by
Steve
Telerik team
David Brenchley
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or