[DevExpress Support Team: CLONED FROM T321093: How to share one RichEditControl toolbar between several RichEditControls]
Please see video. This is the same project. But after updating from 14.1.8 to 15.2.4 it does not work properly.
When I open one document and close it then the first raised event is DocumentRemoved (DocumentClosed expected).
When I open two or more documents and close them one by one then then the first raised event is DocumentClosed (as expected), but Documents.Count contains wrong value.
As a result, the main window does not close after the last document has been closed.
DocumentRemoved and DocumentClosed events are raised in incorrect order
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.5Download Official Update
- v15.1.10Download Official Update
Hello Andrey,
Would you please uncheck the Private flag so we can include this fix in our What's New ?
I have created a sample project and tested it in all versions starting with 14.1.8. The order of the events in all versions is the following:
- DocumentClosing
- DocumentRemoved
- DocumentClosed
I've also created a sample video to demonstrate that.
It seems the cause of the issue is the code in the project. Please check it and let me know your results.
Unfortunately I already removed 14.1.8 version, but I still use sometimes 13.2.8 version and with small modifications in your project I reproduce my issue in my side
Thank you for the clarification. I've successfully reproduced the behavior you described and passed the ticket to our developers for further research. We will inform you as soon as we have any results.