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.
DocumentManager - A document's AllowClose option is being reset if the document is hosting DockPanel
Answers approved by DevExpress Support
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.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
- v14.2.11Download Official Update
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.