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

Disable a Pane

5 Answers 187 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 12 Oct 2014, 08:49 AM
I want to disable a rad pane that is tabbed in a docked layout.

I want to see it, but not allow the user to select it. Like any other windows control that is disabled.

5 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 14 Oct 2014, 11:40 AM
Hello Eric,

In order to disable a specific RadPane you could set the 'IsEnabled' property to false. Please see the provided code snippet:

<telerik:RadPane Header="Document " IsEnabled="False">

However, if that is not what you're looking for could you please provide us more information about your scenario and the functionality you're trying to achieve.

I'm looking forward to hearing from you.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Eric
Top achievements
Rank 1
answered on 14 Oct 2014, 02:13 PM
AbstractionPane.IsEnabled = false;

Where AbstractionPane is a direct reference to the pane in the view.

This doesn't appear to do anything. I would expect the tab of the pane to be grayed out but it isn't. The behavior does not change at all which is why I asked the question in the first place.
0
Nasko
Telerik team
answered on 15 Oct 2014, 10:46 AM
Hello Eric,

Could you please provide us more information about how exactly the Docking is defined (a code snippet will be of great help)? Also, are you using PanesSource or static Panes?

I'm looking forward to hearing from you.

Regards,
Nasko
Telerik 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Gor
Top achievements
Rank 1
answered on 12 Jul 2018, 11:50 AM

Hello!

Is this issue fixed? For me, setting IsEnabled to false does nothing, like for the original poster. The goal I would like to achieve, that the pane is still accessible, but every control is greyed out, so the user can't use it.

Some code:

<telerik:RadDocking Grid.RowSpan="2" Grid.Row="1" HasDocumentHost="False" Close="Document_Close" PreviewClose="MainRadDock_PreviewClose" x:Name="MainRadDock">
<telerik:RadSplitContainer Width="220" InitialPosition="DockedLeft" Orientation="Vertical">
    <telerik:RadPaneGroup>
        <telerik:RadPane x:Name="LayoutPane" IsHidden="True" TitleTemplate="{StaticResource ProjektTitleTemplate}" Tag="Blue" ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="LayoutPane">
        [...]
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer Width="220" InitialPosition="DockedLeft" Orientation="Vertical">
    <telerik:RadPaneGroup>
        <telerik:RadPane x:Name="LibraryPane" TitleTemplate="{StaticResource ProjektTitleTemplate}" Tag="Red" ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="LibraryPane">
            [...]
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer Width="220" InitialPosition="DockedLeft" Orientation="Vertical">
    <telerik:RadPaneGroup>
        <telerik:RadPane x:Name="ContentsPane" Tag="Blue" ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="ContentsPane">
            [...]
        </telerik:RadPane>
    </telerik:RadPaneGroup>
    <telerik:RadPaneGroup>
        <telerik:RadPane x:Name="NotesPane"  Tag="Blue" ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="NotesPane">
            [...]
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>

Code I tried:

LibraryPane.IsEnabled = false;

The panes contain grids, and usual content like RadButton and RadTreeView.

Thank you

0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Jul 2018, 01:55 PM
Hello Gor,

To enable/disable the content of the Pane can you try setting the IsEnabled property of the PaneGroup instead of setting it to the RadPane.

<telerik:RadSplitContainer Width="220" InitialPosition="DockedLeft" Orientation="Vertical">
    <telerik:RadPaneGroup IsEnabled="False">
        <telerik:RadPane x:Name="LibraryPane" TitleTemplate="{StaticResource ProjektTitleTemplate}" Tag="Red" ContextMenuTemplate="{x:Null}" telerik:RadDocking.SerializationTag="LibraryPane">
            [...]
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>

Hope this approach will work on your side.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Eric
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Eric
Top achievements
Rank 1
Gor
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or