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

TabbedMDIManager - programmatically creating new tab group and moving some forms there

Hi,

I can't find a way how to do it in v7.4. I am able to create new tab group (and move the active document there), but I also need to move other documents to that group as well. How do I do it?

Thanks!
-Andrew

2 Replies

AD Administrator Syncfusion Team July 27, 2010 04:04 PM UTC

I found a way to do it in the simplest case (when there are no tab groups present), but it fails in more complicated scenarios. How do I find the corresponding TabHost, given the group name "details"?

// move detail views to a new tab group
var firstView = detailViews.FirstOrDefault();
if (firstView != null)
{
ActivateMdiChild(firstView);
MdiManager.CreateNewVerticalGroup("details");
}
foreach (var view in detailViews.Where(v => v != firstView))
{
ActivateMdiChild(view);
MdiManager.MoveToNextTabGroup();
}


LE Lokanath E Syncfusion Team July 29, 2010 02:23 PM UTC

Hi Andrew,

Thanks for your interest in Syncfusion products.

We have attached a sample demonstrating how you can move documents from one tab group to another.

Please let us know if you have any concern on this.

Regards,
Lokanath.E



Tab_4e23e7c9.zip

Loader.
Live Chat Icon For mobile
Up arrow icon