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
230
Docking gets disabled
posted

Hi

I wrote following code to dock controls:

private DockAreaPane m_dapTop = new DockAreaPane(DockedLocation.DockedTop);
public ControlAtGlanceDockPane()
{
InitializeComponent();
ultraDockManager
.DockAreas.Add(m_dapTop);
}

private void AddPortfolio(int fundId, int investableId, string fundName)
{
try
{
ultraDockManager
.SuspendLayout();
ultraDockManager
.BeginUpdate();

ControlAtGlance ctrlAtGlance = new ControlAtGlance(param, m_dsPortfolio.LGT_V_PfoInvestable);
ctrlAtGlance
.ShowPortfolioRequest += new ShowPortfolioRequestEventHandler(ctrlAtGlance_ShowPortfolioRequest);

string key = ctrlAtGlance.Key;
string name = string.Format("{0}", fundName);

DockableControlPane dcpGridView = new DockableControlPane(key, name, ctrlAtGlance);
dcpGridView
.Tag = fundId;
dcpGridView
.Pinned = true;

DockableGroupPane dgpGridList = new DockableGroupPane();
dgpGridList
.ChildPaneStyle = ChildPaneStyle.TabGroup;

if (!dgpGridList.Panes.Contains(dcpGridView))
dgpGridList
.Panes.Add(dcpGridView);

m_dapTop.Panes.Add(dgpGridList);

dgpGridList.Pin();
dgpGridList
.ShowChildPanes(true);
}
catch(Exception ex)
{
}
finally
{
ultraDockManager
.EndUpdate();
ultraDockManager
.ResumeLayout();
}

I loaded/docked two new panes, undocked one of them and docked it again at different position. After that I wasn't able to load/dock any new pane. Is there anyone who's aware of this problem and knows how to fix it?

Cheers
Dan