Hi,
We have a RadDock with multiple open documents (of type DocumentWindow), like the attached "DocumentsLayout" image.
These documents belong to a specific parent (what we call the "MainFolder"). Once the "MainFolder" is closed, we have a process that closes all opened documents and saves some metadata, including which documents were opened (currently we only save the names of those documents). We want to be able to restore the docking layout and restore the location of those previously opened documents, but we are not sure how to.
Currently, once we get the list of documents that we want to reopen, we restore them with:
public void RestoreDocuments(RadDock radDock, IEnumerable<DocumentWindow> documents)
{
foreach (DocumentWindow document in documents)
{
radDock.AddDocument(document);
}
}
But of course the docking layout is lost, and all documents are added to the default DocumentTabStrip (even floating ones were added to the main one).What is the best way to achieve this? We also care about the order they were originally located within the tab strips (i.e. in the image, Document 2 on the left and Document 1 on the right)
Note: We are using version 2018_3_911, but we can upgrade if necessary.
Thank you for your help.