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
close icon

Docking Panel Titla

Hi

I am try to display different title in the docking panel when it is docked and when it is pinned. Essentially I want to have different Titla displayed always on the Tab and different Title on the panel itself.

By default the panel shows the it's title in collapsed mode and in open mode. Can you please advice on how to achieve this?

Thank you
Suhail



DockingPanel_886fb3e7.zip

3 Replies

BA Balavasanth Syncfusion Team December 16, 2008 10:55 AM UTC

Hi Suhail,

Thanks for your interests in Syncfusion products.

It is possible to set the different titles by iterating the elements in the Docking Manager and by checking its state in the DockStateChanged event of the Docking Manager. For instance we have attached a simple code snippet for your reference.

private void docmanager_DockStateChanged(FrameworkElement sender, DockStateEventArgs e)
{

foreach (FrameworkElement felement in dockingManager.Children)
{
if(DockingManager.GetState(felement) == DockState.AutoHidden)
{
//try to set the title here like this
DockingManager.SetHeader(LeftPanel, "Title AutoHidden");
}
}
}

For more idea kindly make use of the sample.

http://www.syncfusion.com/support/user/uploads/simple sample1820406205.zip

Please let us know if you have any queries.

Regards,
Bala.





JA jm arenas replied to Balavasanth February 1, 2018 07:49 AM UTC

Hi Suhail,

Thanks for your interests in Syncfusion products.

It is possible to set the different titles by iterating the elements in the Docking Manager and by checking its state in the DockStateChanged event of the Docking Manager. For instance we have attached a simple code snippet for your reference.

private void docmanager_DockStateChanged(FrameworkElement sender, DockStateEventArgs e)
{

foreach (FrameworkElement felement in dockingManager.Children)
{
if(DockingManager.GetState(felement) == DockState.AutoHidden)
{
//try to set the title here like this
DockingManager.SetHeader(LeftPanel, "Title AutoHidden");
}
}
}

For more idea kindly make use of the sample.

http://www.syncfusion.com/support/user/uploads/simple sample1820406205.zip

Please let us know if you have any queries.

Regards,
Bala.




hi! this is just for personal use. thanks


DR Durga Rajan Syncfusion Team February 2, 2018 11:42 AM UTC

Hi Suhail Shaikh,

Thanks for the update. Please let us know if you need any further assistance on this.

Regards,
Durga S.

Loader.
Live Chat Icon For mobile
Up arrow icon