RadPane with Close Button

4 posts, 0 answers
  1. Christopher Jenkins
    Christopher Jenkins avatar
    10 posts
    Member since:
    Apr 2004

    Posted 18 Feb 2009 Link to this post

    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.
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 23 Feb 2009 Link to this post

    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.
  3. DevCraft banner
  4. Nik
    Nik avatar
    14 posts
    Member since:
    Jan 2007

    Posted 19 Mar 2009 Link to this post

    Hi

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

    Ita very urgent.

    Any help would really appreciated.

    Regards
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 20 Mar 2009 Link to this post

    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.
Back to Top