RadPane tab width, orientation and white screen

7 posts, 0 answers
  1. Kevin
    Kevin avatar
    6 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    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


  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Sep 2009 Link to this post

    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.
  3. DevCraft banner
  4. Kevin
    Kevin avatar
    6 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    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
  5. Kevin
    Kevin avatar
    6 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    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>

  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Sep 2009 Link to this post

    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.
  7. Stephen Miller
    Stephen Miller avatar
    5 posts
    Member since:
    May 2010

    Posted 27 May 2010 Link to this post

    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
  8. Pana
    Admin
    Pana avatar
    748 posts

    Posted 02 Jun 2010 Link to this post

    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.
Back to Top
DevCraft banner