Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2915
Issue in removing documents from dockmanager
posted

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?