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

RadPane tab width, orientation and white screen

6 Answers 164 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 10 Sep 2009, 02:26 PM
I am using Silverlight 3 & Telerik docking dll version 2009.2.828.1030. I am having several issues with the Docking controls.

The first problem relates to RadPaneGroup tab widths. They do not automatically size to fit the Title text. It seems like no matter how many panes (tabs) I add, the total width of all the tabs combined remains the same.

The second issue relates to docking panes. In some cases, I get the following error when trying to dock a pane. The window is completely white after this error occurs.
Sys.InvalidOperationException: Runtime error 4008 in control 'Silverlight2', method : Layout cycle detected. Layout could not complete

The third issue I am having relates to tab strip placement. No matter what I set the RadPaneGroup TabStripPlacement value to, the tabs are always at the top of the group.

Any ideas?

Thanks
Kevin


6 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 10 Sep 2009, 03:15 PM
Hi Kevin,

It seems that the RadPaneGroup starts to shrink the panes when there is no enough space for all of them. When they cannot be shown with their full size they are shrank. It seems correct for me. The only thing that didn't seem correct is that if you shrink the group a lot some of the last panes are going out of the visible area. Is this the problem you are talking about? If you just don't like the default behavior, you could change it by setting the ItemsPanel panel template of the RadPaneGroup control. By default it is a TabStripPanel.

About the second issue - could you please send us a code sample and step-by-step instructions how to reproduce the problem. This will help us a lot to find out what the problem is.

About the third issue - the reason is because we implemented all templates except the top one to be the same as the bottom one as the Docking control doesn't need any of the other by default. You could change this by setting the other templates using the following properties: LeftTemplate, TopTemplate, RightTemplate and BottomTemplate.

Hope this information is helpful.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kevin
Top achievements
Rank 2
answered on 10 Sep 2009, 04:47 PM
Hi Miroslav:

Thank you for such a quick response.

About the first issue of the pane tabs. I don't believe the problem is caused by insufficient space because I have lots of space. I am using the System.Windows.Controls.Navigation.Page. When I put the same XAML code in a UserControl instead of a Page, the tabs are sized  properly. Do you know of any issues with the silverlight navigation framework ( not teleriks) and teleriks docking controls?

Thanks,
Kevin
0
Kevin
Top achievements
Rank 2
answered on 10 Sep 2009, 06:31 PM
I made a discovery about the tab sizing issue. It seems like the <ScrollViewer HorizontalScrollBarVisibility> causes the problem.

Here is a snippet of code that you can use to reproduce this issue. If you remove the HorizontalScrollBarVisibility option, the tabs are sized correctly. The problem for me is that I need the ScrollViewer functionality.

<UserControl x:Class="TelerikDocker.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"         
    mc:Ignorable="d">
        <Grid>
        <ScrollViewer HorizontalScrollBarVisibility ="Auto">
        <!--<ScrollViewer>-->
            <radDock:RadDocking x:Name="Docking">
                <radDock:RadDocking.DocumentHost>
                    <radDock:RadSplitContainer x:Name="radSplitContainerCallsTickets">
                        <radDock:RadPaneGroup x:Name="PaneGroupCallQueueTicketHistory">
                            <radDock:RadPane Title="Calls In Queue" CanUserClose="False" CanFloat="True">
                            </radDock:RadPane>
                            <radDock:RadPane Title="Ticket History" CanUserClose="False" CanFloat="False">
                            </radDock:RadPane>
                            <radDock:RadPane Header="Ticket Search" CanUserClose="False">
                            </radDock:RadPane>
                        </radDock:RadPaneGroup>
                    </radDock:RadSplitContainer>
                </radDock:RadDocking.DocumentHost>
            </radDock:RadDocking>
            </ScrollViewer>
        </Grid>
</UserControl>

0
Miroslav Nedyalkov
Telerik team
answered on 11 Sep 2009, 08:04 AM
Hello Kevin,

The Docking control is not designed to work in a ScrollViewer or in a panel that measures it with infinite width or height. It causes some problems because of the proportional panes. What you can do is either to remove the ScrollViewer permanently or to set Width and Height properties of the Docking control.

If you don't do one of these you will experience problems with the virtualized controls also - ListBox, DataGrid, RadGridView, etc..

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Stephen Miller
Top achievements
Rank 1
answered on 27 May 2010, 04:50 PM
Greetings,

The answer provided for this gentleman's issue #3 did not answer the question.  The answer left me more perplexed than I was before I looked at it.  I am using WPF 2010 Q1 and nothing I do places the tab headers at the bottom.  Whenever I try to follow the instructions in the help manual for creating a copy of the template, the app crashes because of the altered template copy.

Can some xaml please be provided that shows how to put the headers at the bottom?

Thanks,
Steve
0
Pana
Telerik team
answered on 02 Jun 2010, 06:36 AM
Hi Stephen Miller,

We do not have such example right now but we will consider this feature. For now you will have to use the existing states or create them yourself. I will notify you when we implement the tab orientation.

Kind regards,
Panayot
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.
Tags
Docking
Asked by
Kevin
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Kevin
Top achievements
Rank 2
Stephen Miller
Top achievements
Rank 1
Pana
Telerik team
Share this question
or