DataBinding errors when docking a Pane

2 posts, 1 answers
  1. Pascal GUERY
    Pascal GUERY avatar
    40 posts
    Member since:
    Apr 2010

    Posted 10 Jan 2014 Link to this post


    I am developing a WPF application in my company.
    I use RadDocking controls.

    A UserControl is displayed in a Pane in the DocumentHost at runtime (see attached file : 1.png).
    The UserControl contains a RadGridView with a GridViewImageColumn databound to an object's property which does not exist.
    So databinding errors are displayed in the Output window as expected (see attached file : 2.png).

    Then I have cleared the Output window.
    I have undocked the Pane (see attached file : 3.png).
    No databinding errors have been displayed in the Output window as expected (see attached file : 4.png).

    Then I have docked the Pane into a right SplitContainer (see attached file : 5.png).
    Databinding errors have been displayed in the Output window but I do not understand why (see attached file : 6.png).

    Does databinding always occur when docking a Pane ?

    Thank you in advance for your help
  2. Answer
    Kalin avatar
    1283 posts

    Posted 15 Jan 2014 Link to this post

    Hi Pascal,

    We tested the explained scenario and the binding errors were appearing on every change of the Pane state (even when undocking the Pane). This behavior is expected as on every Pane state changed it tries to load its content - for example when is docked and undocked afterwards it is removed from the visual tree and added again which is causing the content reload. However this shouldn't bother you as the framework itself handles the errors.

    Hope this helps.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top