ExpandCollapse RadPane

2 posts, 0 answers
  1. Kingsley Magnus-Eweka
    Kingsley Magnus-Eweka avatar
    54 posts
    Member since:
    Aug 2009

    Posted 18 Aug 2009 Link to this post

    Hi All,
    is there a way of expanding and collapsing a a RadPane? i cant see any functionality for it? i.e a way to make it behave like its aspnet ajax counterpart  'Radock', i know you can pin and unpin it when it is docked but i actually mean when it is a floating pane....can you collapse it while floating?

    regards
    Kingsley
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Aug 2009 Link to this post

    Hi Kingsley,

    Unfortunately there is no way to do this out-of-the-box. You can write custom code that accomplishes the task, but the Docking control doesn't have this feature. You could find the ToolWindow and change its width and height. Here is a short example of what I mean:
    <docking:RadPane Header="Pane"
        <Button Content="Collapse me" Click="Button_Click" /> 
    </docking:RadPane> 
    private void Button_Click(object sender, RoutedEventArgs e) 
        var fe = sender as FrameworkElement; 
        var window = fe.ParentOfType<ToolWindow>(); 
        if (window != null
        { 
            window.Height = 30; 
        } 

    Hope this information helps.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top