We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Re open close window in dockingManager

Good Day!

Please let me some help, how do I open a closed window in a dockingmanager from the ViewModel?. Thanks

3 Replies

DR Durga Rajan Syncfusion Team September 13, 2017 10:48 AM UTC

Hi Andres, 

Thanks for contacting Syncfusion support. 

We have checked your query and prepared a sample to meet your requirement. The state of the docking child will be changed as Hidden while closing the window (child of DockingManager). We can store the reference of the Closed window in our ViewModel and restore them whenever needed.  In this sample, we have stored the closed windows reference in MenuItemViewModel, and provided a menu options to open the recently used tab and we displayed the recently closed tabs under "Recent Files.." menuitem. Also the closed windows can be restored using RestoreElement() method of DockingManager based on the state of the Child element while clicking the item from menu. And, we have prepared a sample for the same, please download the sample from below location.   

If we misunderstood your query please provide more details and sample about your requirement. 

Durga S. 

AN Andres September 15, 2017 10:14 PM UTC

Thanks, problem resolved.

DR Durga Rajan Syncfusion Team September 18, 2017 05:58 AM UTC

Hi Andres,  

We are glad to know that your issue has been solved. Please let us know if you need any further assistance. 

Durga S. 

Live Chat Icon For mobile
Up arrow icon