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

Many binding error when I put ReportViewer in UserControl

11 Answers 450 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 07 Feb 2013, 09:52 AM

Hello. I have big problem with reportViewer. I try to put it on RadDocumentPane like this:

<telerikDocking:RadDocumentPane x:Class="Gcg.Olb.Client.ReportModule.Views.ReportDocumentPane"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                                        xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
                                xmlns:tr="http://schemas.telerik.com/wpf"
                                mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <tr:ReportViewer/>
         
    </Grid>
</telerikDocking:RadDocumentPane>

WHen I try to add this pane to docking control I receive 2 Object null refence errors and ReportView is not displaing. I need to move my application window to display it. And in output window I have many errors:

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateBackCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateBackCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateForwardCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateForwardCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'StopRenderingCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=StopRenderingCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'RefreshReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RefreshReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToFirstPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToFirstPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToPreviousPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToPreviousPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsMoveToPageEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsMoveToPageEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'IsEnabled' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageNumberModel' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageNumberModel; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateToSpecificPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateToSpecificPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.LabelOf; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageCount' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageCount; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToNextPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToNextPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToLastPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToLastPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'PageSetupCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageSetupCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TogglePrintPreviewCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TogglePrintPreviewCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsPrintPreviewChecked' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPrintPreviewChecked; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'PrintReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PrintReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'RenderingExtensions' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RenderingExtensions; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedRenderingExtension' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedRenderingExtension; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsExportEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsExportEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'IsEnabled' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasDocumentMap' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasDocumentMap; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='ParametersAreaPane'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'VisibleParameterModels' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=VisibleParameterModels; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ReportParametersControl' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'PreviewReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PreviewReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.PreviewButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsPreviewButtonVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPreviewButtonVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='UpdateParametersDialog'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'UpdateParametersProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=UpdateParametersProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapWidth' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapWidth; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ColumnDefinition' (HashCode=28417134); target property is 'Width' (type 'GridLength')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='DocumentMapPane'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedDocumentMapNode' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedDocumentMapNode; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'SelectedItem' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapNodes' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapNodes; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'GridSplitter' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ViewerProgressMessage'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ProgressMessage' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ProgressMessage; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'Error' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Error; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'HasError' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasError; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name='ViewerError'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ExportDialog'); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Error: 40 : BindingExpression path error: 'ExportProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ExportProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')

System.Windows.Data Error: 40 : BindingExpression path error: 'CancelExportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=CancelExportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')

System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.CancelButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')

System.Windows.Data Error: 40 : BindingExpression path error: 'Zoom' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Zoom; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadSlider' (Name=''); target property is 'Value' (type 'Double')

System.Windows.Data Error: 40 : BindingExpression path error: 'AvailableZoomValues' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=AvailableZoomValues; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')

System.Windows.Data Error: 40 : BindingExpression path error: 'ZoomText' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ZoomText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'Text' (type 'String')

11 Answers, 1 is accepted

Sort by
0
Sergey
Top achievements
Rank 1
answered on 07 Feb 2013, 10:16 AM
I found solution.
0
Anton
Top achievements
Rank 1
answered on 11 Feb 2013, 02:23 PM
Hello. Can telerik support write some comment about this error? Why does ReportViewer not work without ReportSource? Thanks.
0
Mark
Top achievements
Rank 1
answered on 11 Feb 2013, 05:12 PM
What was the solution?  I'm getting this error also.
0
Steve
Telerik team
answered on 12 Feb 2013, 01:31 PM
Hello guys,

Currently there is a known problem where an exception is thrown if the WPF report viewer has no ReportSource set. It is logged in our system and it would be fixed for subsequent version of the product. For the time being, please assign the base report class Telerik.Reporting.Report to the ReportSource whenever you do not wish to have an actual report shown in the viewer.

Sorry for the temporary inconvenience.

Regards,
Steve
the Telerik team

HAPPY WITH 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!

0
Andreas
Top achievements
Rank 1
answered on 26 Jun 2013, 10:12 AM
@Sergey

Can you post the solution please?

thanks
0
Stef
Telerik team
answered on 27 Jun 2013, 06:49 PM
Hi Andreas,

The issue my colleague has mentioned is fixed in Telerik Reporting Q1 2013. If you experience a similar problem, please upgrade your projects.

In case you need further help, elaborate on the issue. You can also open a support ticket and send us your details there.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Daniel
Top achievements
Rank 1
answered on 09 Dec 2013, 12:49 PM
Hi Steff!

Sorry but I use Q2 2013 SP1 (7.1.13.802) and I get exactly the same error:

System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateBackCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=NavigateBackCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateForwardCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=NavigateForwardCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'StopRenderingCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=StopRenderingCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'RefreshReportCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=RefreshReportCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToFirstPageCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=MoveToFirstPageCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToPreviousPageCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=MoveToPreviousPageCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsMoveToPageEnabled' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsMoveToPageEnabled; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBoxEx' (Name=''); target property is 'IsEnabled' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageNumberModel' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=PageNumberModel; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBoxEx' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateToSpecificPageCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=NavigateToSpecificPageCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBoxEx' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=TextResources.LabelOf; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageCount' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=PageCount; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToNextPageCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=MoveToNextPageCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToLastPageCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=MoveToLastPageCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageSetupCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=PageSetupCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TogglePrintPreviewCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=TogglePrintPreviewCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsPrintPreviewChecked' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsPrintPreviewChecked; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'PrintReportCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=PrintReportCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'RenderingExtensions' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=RenderingExtensions; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedRenderingExtension' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=SelectedRenderingExtension; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsExportEnabled' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsExportEnabled; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadComboBox' (Name=''); target property is 'IsEnabled' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasDocumentMap' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=HasDocumentMap; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasParameters' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=HasParameters; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'Border' (Name='ParametersAreaPane'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'VisibleParameterModels' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=VisibleParameterModels; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'ReportParametersControl' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=TextResources.PreviewButtonText; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'PreviewReportCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=PreviewReportCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsPreviewButtonVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsPreviewButtonVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'DialogBox' (Name='UpdateParametersDialog'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'UpdateParametersProgress' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=UpdateParametersProgress; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapWidth' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=DocumentMapWidth; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'ColumnDefinition' (HashCode=18712351); target property is 'Width' (type 'GridLength')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'Border' (Name='DocumentMapPane'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedDocumentMapNode' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=SelectedDocumentMapNode; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'SelectedItem' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapNodes' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=DocumentMapNodes; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'GridSplitter' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsInProgress; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'DialogBox' (Name='ViewerProgressMessage'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ProgressMessage' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=ProgressMessage; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=IsInProgress; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'Error' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=Error; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasError' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=HasError; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBox' (Name='ViewerError'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=ShowExportDialog; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'DialogBox' (Name='ExportDialog'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ExportProgress' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=ExportProgress; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=ShowExportDialog; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=TextResources.CancelButtonText; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'CancelExportCommand' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=CancelExportCommand; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'Zoom' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=Zoom; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadSlider' (Name=''); target property is 'Value' (type 'Double')
System.Windows.Data Error: 40 : BindingExpression path error: 'AvailableZoomValues' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=AvailableZoomValues; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'ZoomText' property not found on 'object' ''ReportPreviewVM' (HashCode=6010880)'. BindingExpression:Path=ZoomText; DataItem='ReportPreviewVM' (HashCode=6010880); target element is 'RadComboBox' (Name=''); target property is 'Text' (type 'String')

What Is the cause of this problem? I don't want to implement/overrride all ReportViewerModel commands here and there is no documentation entry that I have to do this. How can I get rid of this binding errors?

Thanks Daniel
0
Stef
Telerik team
answered on 09 Dec 2013, 03:21 PM
Hi Daniel,

According to the exception, it appears the ReportViewer does not bound to the ReportViewerModel context, resulting in numerous errors different properties are not found in the current context.

If you need further help to resolve the issue, please open a support ticket and add a sample project illustrating your settings and the problem.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Roman
Top achievements
Rank 1
answered on 17 Jan 2014, 04:10 PM
I solver the problem! God, It was killing me for 2 years!
So binding exceptions appear because of invalid type in report viewers` DataContext.
I`ve tried to make my own style and write FallBackValue on invalid bindings, but it not worked!
So you should keep DataContext empty)

Solution looks like this:
<Grid x:Name="Root">
        <tr:ReportViewer ReportSource="{Binding Path=DataContext.ReportSource, ElementName=Root}"
                        DataContext="{x:Null}" />
</Grid>

Have fun)
0
Heiko
Top achievements
Rank 1
answered on 05 Apr 2015, 09:37 AM

Thanks, Roman, you made my day!

HELLO, TELERIK: this is still an issue!! When using my own ViewModel as DataContext for the View where the ReportViewer is placed in I still get these errors. The ReportSource itself is bound to a property of the ViewModel which is a TypeReportSource. Everything works fine if I use the solution Roman posted - but this can not be the solution, right?

0
Stef
Telerik team
answered on 08 Apr 2015, 02:17 PM
Hi Neils,

Please check the attached MVVM example with a WPF ReportViewer. As long as the viewer's model is loaded correctly the viewer manages to find its resources based on the bindings in its template.

The project uses Telerik Reporting Q1 2015 SP1 v9.0.15.324 and the corresponding Telerik UI for WPF dependencies.


We will appreciate it if you open a support ticket and send us a demo project to check your settings and how and when the data context is set.

Regards,
Stef
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Sergey
Top achievements
Rank 1
Answers by
Sergey
Top achievements
Rank 1
Anton
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Steve
Telerik team
Andreas
Top achievements
Rank 1
Stef
Telerik team
Daniel
Top achievements
Rank 1
Roman
Top achievements
Rank 1
Heiko
Top achievements
Rank 1
Share this question
or