Many binding error when I put ReportViewer in UserControl

12 posts, 0 answers
  1. Sergey
    Sergey avatar
    58 posts
    Member since:
    Jan 2013

    Posted 07 Feb 2013 Link to this post

    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')

  2. Sergey
    Sergey avatar
    58 posts
    Member since:
    Jan 2013

    Posted 07 Feb 2013 Link to this post

    I found solution.
  3. Anton
    Anton avatar
    7 posts
    Member since:
    Jan 2013

    Posted 11 Feb 2013 Link to this post

    Hello. Can telerik support write some comment about this error? Why does ReportViewer not work without ReportSource? Thanks.
  4. Mark
    Mark avatar
    2 posts
    Member since:
    Nov 2011

    Posted 11 Feb 2013 Link to this post

    What was the solution?  I'm getting this error also.
  5. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 12 Feb 2013 Link to this post

    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!

  6. Andreas
    Andreas avatar
    3 posts
    Member since:
    May 2011

    Posted 26 Jun 2013 Link to this post

    @Sergey

    Can you post the solution please?

    thanks
  7. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 27 Jun 2013 Link to this post

    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.

  8. Daniel
    Daniel avatar
    4 posts
    Member since:
    Sep 2011

    Posted 09 Dec 2013 Link to this post

    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
  9. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 09 Dec 2013 Link to this post

    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.

  10. Roman
    Roman avatar
    1 posts
    Member since:
    Jan 2014

    Posted 17 Jan 2014 Link to this post

    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)
  11. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 05 Apr 2015 in reply to Roman Link to this post

    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?

  12. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 08 Apr 2015 Link to this post

    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.

     
Back to Top