5 Answers, 1 is accepted
0
Hello Eric,
In order to disable a specific RadPane you could set the 'IsEnabled' property to false. Please see the provided code snippet:
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
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.
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
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,
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
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
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.
Hope this approach will work on your side.
Regards,
Dinko
Progress Telerik
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.