Hello!
I upgrade a project to "Telerik Reporting Q2 2012 SP2 (6.1.12.820)" from "(4.0.10.423)". The following code dont work, after the upgrade.
The exception is:
A 'Binding' cannot be set on the 'Report' property of type 'ReportViewer'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.
In the ViewModel is this code:
Thanks in advance
wal1
I upgrade a project to "Telerik Reporting Q2 2012 SP2 (6.1.12.820)" from "(4.0.10.423)". The following code dont work, after the upgrade.
<UserControl x:Class="Sta1.UI.Modules.Reports.ReportDetailView" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:telerik="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" x:Name="thisWindow"> <Grid> <telerik:ReportViewer Report="{Binding DataContext.Report, ElementName=thisWindow}" /> </Grid></UserControl>The exception is:
A 'Binding' cannot be set on the 'Report' property of type 'ReportViewer'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.
In the ViewModel is this code:
... private Report _report; public Report Report { get { return _report; } private set { _report = value; NotifyOfPropertyChange(() => Report); } } public void SetReport(Report reportToShow) { Report = null; Report = reportToShow; }...Thanks in advance
wal1