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

After upgrade to 2012.1.215.40 massive problems with RadDocking

3 Answers 64 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 23 Feb 2012, 05:11 PM
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>


3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 28 Feb 2012, 03:00 PM
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 >>
0
Jeff
Top achievements
Rank 1
answered on 05 Mar 2012, 09:16 PM
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.
0
Boyan
Telerik team
answered on 08 Mar 2012, 09:36 AM
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 >>
Tags
Docking
Asked by
Roland
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or