Bug Report T295322
Visible to All Users

DocumentManager - A document's AllowClose option is being reset if the document is hosting DockPanel

created 9 years ago

I have added a DockManger and DocumentManager to a form, and created 2 DockPanels as Tabbed Documents. In the designer, I set the "AllowClose" property to "False" on both the documents and the TabbedView. When I activated the documents programmatically the close button was coming back, so I added code after the "activate" to set the property back to False. Now, clicking from 1 tab to another is also setting the property back to "True", and I haven't found an event I can handle to set them back (I can see that the property is back to "True" in the DocumentManager.DocumentActivate event, but setting it back to "False" in that event doesn't work, the close button still appears.

Comments (1)
DevExpress Support Team 9 years ago

    Hello Christopher,
    Thank you for pointing this issue out to us. I have passed this ticket to our R&D team for research. In the meantime, use the DockPanel.Options.ShowCloseButton option instead.

    Answers approved by DevExpress Support

    created 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.