Bug Report T386970
Visible to All Users

DataContext is not restored in non-active DocumentPanels when a layout is changed

created 9 years ago

Lost Binding after Layout change. Details in video.

Comments (3)
DevExpress Support Team 9 years ago

    Hi,

    Thank you for sending us the video. I have checked it but the problem is not clear to us. Would you please send us a sample project or code that illustrates the problem in action? It will help us thoroughly research the problem and find its cause. We greatly appreciate your time and cooperation.
    I look forward to your response.

      Attached sample project and Video.

      Andrey Marten (DevExpress Support) 9 years ago

        Hello Marek,

        Thank you for providing the sample. I've researched it and found that the issue is related not to the third panel that is docked to a new group, but to the second panel remaining in your first DocumentGroup. When you dock your third panel, the context in all panels is refreshed, but the second panel's DataContext is not set back to the corresponding ViewModel. If you try to activate the second panel after the third panel is docked to a new DocumentGroup, you will see that the issue does not occur.

        I've forwarded this thread to our developers for additional research. We will inform you as soon as we have any news.

        As a temporary solution, enable caching in your DocumentGroup by setting its TabContentCacheMode to CacheAllTabs. See the modified sample in the attachment.

        Thanks,
        Andrey

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.