Docking Binding References

2 posts, 0 answers
  1. Abhinav
    Abhinav avatar
    40 posts
    Member since:
    Jun 2016

    Posted 03 Apr 2017 Link to this post

    Hi Telerik,

    We have a RadDocking control in a child control that resides within a RadDocking control in a parent control.

    The parent control contains a RadDocking control which encompasses a Tab control, and the child control resides in one of these Tab controls, where the RadDocking control resides in another TabControl inside the child control. The parent and child controls each have their own Views and VMs.

    When binding 'SelectedItem' in myDatagrid, we receive the following binding error:

    Cannot find source for binding with reference 'ElementName=myDatagrid, RelativeSource={RelativeSource=Self}'. BindingExpression:Path=SelectedItem; DataItem=null; target element is 'InvokeCommandAction' (HashCode=57688201); target property is 'CommandParameter' (type 'Object')


    This error disappears and we are able to bind to 'SelecteItem' only when we remove the 2nd (second) RadDocking control within the parent.

    Please see attached diagram for visual reference.


    Could you please advise?

    Kind regards

  2. Dilyan Traykov
    Dilyan Traykov avatar
    1094 posts

    Posted 06 Apr 2017 Link to this post

    Hello Abhinav,

    I'm afraid the provided information is not enough for me to suggest a possible cause for this behavior.

    May I kindly ask you to isolate the issue in a sample project and send it over so that I may further assist you?

    Thank you in advance for your cooperation on the matter.

    Dilyan Traykov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top