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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to select an item into DockingManager Document

Thread ID:





119229 May 27,2015 03:11 AM UTC May 27,2015 10:42 AM UTC WPF 1
Tags: DockingManager
Diego Fernando Urabayen
Asked On May 27, 2015 03:11 AM UTC

How to select an item into Docking Manager Document? The item is added dynamically and I need to select it for updates. I have n documents added dynamically.

For example. I pass a Docking Manager and the child component name and return an specific component

private SfDataGrid GetDataGridFromDockingManager(DockingManager parent, string dataGridName)


            foreach (var item in parent.Children)


                if (item.GetType() == typeof(SfDataGrid))


                    if (item.ContentId == dataGridName)


                        return (SfDataGrid)item.Content;




            return null;


Victory Jessie Selvam D [Syncfusion]
Replied On May 27, 2015 10:42 AM UTC

Hi Diego,

Thank you for using Syncfusion products.

We can select a document tab in DockingManager using ActivateWindow() method. ActivateWindow() method takes document name as argument so it is not necessary to get the object using name for selecting it. We have prepared a sample and tried to meet your requirement. In the sample, we have added children dynamically in button click event and activated the document through selection change in CombBox. Please find the sample and kb article link from following location:

Sample: DockingManager_ActiveWindow.zip

Article: http://www.syncfusion.com/kb/3223/how-to-select-a-tab-in-dockingmanager-by-using-code-behind

Please let us know if you need further assistance on this.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon