After upgrade to 2012.1.215.40 massive problems with RadDocking

4 posts, 0 answers
  1. Roland
    Roland avatar
    2 posts
    Member since:
    Jul 2011

    Posted 23 Feb 2012 Link to this post

    Hello

    I did upgraded all DLLs in the install-folder und changed the version-entry in all *.csproj files that i use. Now, I have massive problems to use the RadDocking.
    I can complie the programm and it starts, too. But when I try to move a Pane an NullReferenceException will thrown.
    All components (RadSplitContainer, RadGroups, RadPane and RadDocumentPane) are created by code, just the RadDocking is defiend in XAML.

    I tried to build a Exsample  and I get allmost the same error

    important is Application_Startup I need to create the MainWindow at this position!
    If StyleManager.ApplicationTheme is assined than an exception will thrown when a Pane add to RadDocking .


    public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e)
        {
     
            StyleManager.ApplicationTheme = new Office_BlueTheme();
     
            this.MainWindow = new MainWindow();
            this.MainWindow.Show();
        }
    }


    public partial class MainWindow : RadRibbonWindow
    {
        public MainWindow()
        {
            this.WindowState = WindowState.Maximized;
            InitializeComponent();
        }
     
     
        private void AddNewToolDocPane()
        {
            var container = Docking.DocumentHost as RadSplitContainer;
            if (container == null)
            {
                container = new RadSplitContainer() { InitialPosition = DockState.DockedBottom };
                Docking.DocumentHost = container;
            }
            var paneGroup = container.Items.OfType<RadPaneGroup>().FirstOrDefault();
            if (paneGroup == null)
            {
                paneGroup = new RadPaneGroup();
                container.Items.Add((paneGroup));
            }
     
            var pane = new RadPane();
            paneGroup.AddItem(pane, DockPosition.Center);
        }
     
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            AddNewToolDocPane();
        }
    }

    <telerik:RadRibbonWindow x:Class="WpfApplication2.MainWindow"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <StackPanel>
                <Button Content="test" Click="Button_Click"/>
            </StackPanel>
            <telerik:RadDocking Grid.Row="2" x:Name="Docking" BorderThickness="0" Padding="0" >
            </telerik:RadDocking>
        </Grid>
    </telerik:RadRibbonWindow>


  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 28 Feb 2012 Link to this post

    Hello,

    We fixed a similar problem right after the release. There was some very strange issue related to the Themes that was breaking the RadDock when you add dynamically RadPanes.

    So could you please try with our Latest Internal Build and let us know if it fixes the problem.

    Kind regards,
    Boyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeff
    Jeff avatar
    64 posts
    Member since:
    Dec 2011

    Posted 05 Mar 2012 Link to this post

    Any further information on this?

    I just noticed the same problem - I get a crash anytime I try to drag a RadPane.

    I roll back to 2011.3.1220.40 and the problem goes away.
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 08 Mar 2012 Link to this post

    Hi,

    We are aware of this issue and it is already fixed. This was a very strange problem that appeared because of some bindings in the themes.

    The issue was fixed right after the release and is available in any of the internal builds after that. It will be also included in the SP1 that will be released in a couple of weeks.

    All the best,
    Boyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top