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

RadDock in Grid and auto hide pane issues

12 Answers 961 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Lior ef
Top achievements
Rank 1
Lior ef asked on 21 Feb 2010, 02:52 PM
hi,

1. i have a dock control in a grid, the Height of the the row is set to "auto" and i get an exception:
"Placing Docking control in a panel or control that measures it with infinite width or height is not supported in the current version. You can disable this error by setting the AllowUnsafeMode property of the RadDocking control."

if the Height is set to a number or to " * " it's works fine.
is this behavior normal?

2. one other thing (a small one):
when a pane is set to auto-hide, i place the mouse pointer on it and it shows, 
then when i place the pointer on the top of the pane, 
between the header text and the buttons the pane hides again, a little annoying, i've checked it on another 
computer and this happens again.

thanks in advance,

Lior.


12 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 22 Feb 2010, 02:45 PM
Hello Lior,

As the exception says the Docking control doesn't support to be placed in a container that measures it with infinite size. This is a limitation of the Docking control.

About your second question - this is expected behavior as the gap between the AutoHideArea popup and the pane's tab is actually outside the the AutoHideArea. Of course you could configure that by changing the control template of the AutoHideAreas and put the popup just next to the pane's tab.

Hope this information is helpful.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lior ef
Top achievements
Rank 1
answered on 22 Feb 2010, 03:11 PM
thanks for the answer.

about the limitation of the control, is this something you're planning to change?

thanks again
0
Miroslav Nedyalkov
Telerik team
answered on 22 Feb 2010, 04:35 PM
Hello Lior,

It is logged in our TODO list, but as the Docking control is meant to be the root element of a page and to occupy the whole space so we didn't assign very high priority to this task. If you share with us why do you need to place the Docking control into a row with height "auto" we could try to help you work-around this scenario.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lior ef
Top achievements
Rank 1
answered on 24 Feb 2010, 07:38 AM
well, it's hard to say,
we're still at the beginning and the UI architecture team are still working,
so i asked that question to know if i'm asked.
when i'll have a specific scenario i'll post it.

thanks. 
0
Mike
Top achievements
Rank 1
answered on 22 Jul 2010, 08:24 PM
I have a scenario. How about a Visual Studio like interface (which this docking is meant to emulate)? We have an area above and below all the docking panel behavior, a header and footer if you will. I think it would be extremely common to have some controls above the docking panels and the docking control would not be the root element in this common scenario.

Short of setting AllowUnsafeMode="True", what is the exact XAML for creating a container that will hold the docking control and allow it to resize with the window? I've tried various Width="*" and Height="*" recommendations with no resolution.
0
Miroslav Nedyalkov
Telerik team
answered on 27 Jul 2010, 04:43 PM
Hi Mike,

 The Docking control should work fine in such scenarios where you have some controls around it as long as the Docking control occupies the rest of the space in the page (that means it is not placed in a StackPanel, in a Grid row or column with dimension Auto or into a ScrollViewer).

Could you please give us some more details about your scenario? It sounds to me that you don't need to set AllowUnsafeMode to True. If you could send us a sample project that demonstrates how you use the Docking control this would be very helpful in understanding your situation.

All the best,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 15 Sep 2010, 07:41 PM
Hello Miroslav

Do you have a sample project for Q2 WPF showing a RadRibbonBar at the top and then a RadDocking below it with height and width basically taking up the rest of the space?

Regards,
Simon
0
Konstantina
Telerik team
answered on 16 Sep 2010, 04:53 PM
Hello Simon,

Please find attached a sample project in which is illustrated how you can arrange the RibbonBar and the Docking one above another in a Window.

Hope it will help you. If you have any other questions please feel free to ask again.


Best wishes,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Simon
Top achievements
Rank 1
answered on 17 Sep 2010, 11:27 AM
Hello Konstantina

If you change the MainWindow to a RadRibbonWindow you will get the infinite error.
I actually got around it by using using the LayoutUpdated event and just setting the
height and width of the RadDocking component inside the event.

Regards,
Simon
0
Miro Miroslavov
Telerik team
answered on 22 Sep 2010, 09:17 AM
Hi Simon,

 I've just test it but with AllowUnsafeMode="True" and it works as expected.
Can you please find the attached example project and let me know if you still get an infinite layout loop?
Thank you for your cooperation.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Joel Palmer
Top achievements
Rank 2
answered on 21 Feb 2017, 06:10 PM

Is there an update to this?  It is now 7 years later and I just got that error.  I have the control in the following hierarchy.  How do you suggest I change it to accommodate your limitations?

<UserControl
    x:Class="PrairieGrove.Product.ContextManager.WPF.UC.EventTreeUC"
     
    xmlns:local="clr-namespace:PrairieGrove.Product.ContextManager.WPF.UC"
     
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
         
            <telerik:RadDocking>
                <telerik:RadSplitContainer
                Orientation="Vertical"
                InitialPosition="DockedLeft">
 
                    <telerik:RadPaneGroup>
                        <telerik:RadPane
                        Header="Event List">
0
Georgi
Telerik team
answered on 24 Feb 2017, 06:03 AM
Hi Joel,

As from the previous post setting the AllowUnsafeMode="True" allows using the RadDocking in scenarios where it is measured with infinity(and the exception is not present):

......................................
<telerik:RadDocking>
                <telerik:RadSplitContainer
                Orientation="Vertical"
                InitialPosition="DockedLeft"
                AllowUnsafeMode="True">
.......................................


Hope this would help.


Regards,
Georgi
Telerik by Progress
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
Lior ef
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Lior ef
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Simon
Top achievements
Rank 1
Konstantina
Telerik team
Miro Miroslavov
Telerik team
Joel Palmer
Top achievements
Rank 2
Georgi
Telerik team
Share this question
or