This is a migrated thread and some comments may be shown as answers.

RadPane with Close Button

3 Answers 289 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Christopher Jenkins
Top achievements
Rank 1
Christopher Jenkins asked on 18 Feb 2009, 09:58 PM
I want to have panes with a close button in the header.  Is the appropriate way to do that to add a button to the HeaderTemplate for the pane?

Also is there a way to put a close button at the right side of the panegroup in the DocumentHostContent?  I'm envisioning something like the "x"  button visual studio has to the right of all the open document tabs.  I'm not sure if there's another template that has to be definied to do that or what.

One last thing - What's the reason for the DocumentHostContent object?  Does it provide special functionality or is it just for look and feel?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 23 Feb 2009, 09:07 AM
Hi Christopher Jenkins,

Sorry for the late response.

If you want to put a close button you can do it in the HeaderTemplate. You will have to add handler for the click event and then (hide/close) the pane (commands will be perfect here).
DockumenHost (the new name of DockumentHostContent property) only purpose is to separate the content area of RadDocking (plus some other restrictions like not showing the PaneHeader control and changing the pane appearance).
Right now we do not support adding custom buttons in document host area. We will consider adding this feature for the next version.

Thanks for your feedback. Let me know if you need more information.

Best wishes,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nik
Top achievements
Rank 1
answered on 20 Mar 2009, 04:19 AM
Hi

Can please provide me any sample for the header template. its would great help

Ita very urgent.

Any help would really appreciated.

Regards
0
Hristo
Telerik team
answered on 20 Mar 2009, 07:59 AM
Hi Nik,

Here you can find example how to close tab item (and have button in the header).
http://www.telerik.com/community/forums/silverlight/tabcontrol/how-to-close-the-tab.aspx#712324

The principle is the same for RadPane (as it inherit from RadTabItem).
Let me know if you need more help.

Sincerely yours,
Hristo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Docking
Asked by
Christopher Jenkins
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Nik
Top achievements
Rank 1
Share this question
or