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

ExpandCollapse RadPane

1 Answer 145 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kingsley Magnus-Eweka
Top achievements
Rank 1
Kingsley Magnus-Eweka asked on 18 Aug 2009, 12:57 PM
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

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 20 Aug 2009, 12:15 PM
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.
Tags
Docking
Asked by
Kingsley Magnus-Eweka
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or