Hi,
I am adding documents to the dockmanager form code-behind :
Infragistics.Windows.DockManager.ContentPane pane = DockMgr.AddDocument(header, viewDetails);
While removing them when I try this -
List<Infragistics.Windows.DockManager.ContentPane> exPanes = DockMgr.GetPanes(Infragistics.Windows.DockManager.PaneNavigationOrder.VisibleOrder).ToList();
for(...) {
exPanes[i].ExecuteCommand(Infragistics.Windows.DockManager.ContentPaneCommands.Close);
}
this doesn't work. If i try the DockMgr.GetPanes(...) again after this, I still get the panes count to be non zero. Can you suggest as to why this is not working?
HI,
Please let me know if you need further assistance.
Sincerely,
Matt Developer Support Engineer
The default CloseAction is HidePane. If you want the pane to be removed from the XDM then you need to set it to RemovePane. If you still have an issue then please post a sample that demonstrates the issue.