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

RadDocking Object reference not set to an instance of an object when hosted in windows forms

7 Answers 72 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Boots
Top achievements
Rank 1
Boots asked on 29 Mar 2010, 03:07 PM
Hello,

I'm running internal build 2010.1.326.35. When i host the RadDocking control inside of a windows form using a ElementHost I'm getting "Object reference not set to an instance of an object."

sample code.
using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
 
namespace WindowsFormsApplication1 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            try 
            { 
                InitializeComponent(); 
                this.elementHost1.Child = new UserControl1(); 
            } 
            catch (Exception ex) 
            { 
                MessageBox.Show(ex.ToString()); 
            } 
        } 
    } 
 

usercontrol code
<UserControl x:Class="WindowsFormsApplication1.UserControl1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
    <Grid> 
        <radDock:RadDocking /> 
    </Grid> 
</UserControl> 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Imaging; 
using System.Windows.Navigation; 
using System.Windows.Shapes; 
 
namespace WindowsFormsApplication1 
    /// <summary> 
    /// Interaction logic for UserControl1.xaml 
    /// </summary> 
    public partial class UserControl1 : UserControl 
    { 
        public UserControl1() 
        { 
            InitializeComponent(); 
        } 
    } 


any suggestions for a workaround would be great. we have a conference coming up next week to demonstrate our product and this control is in all of our WPF maintenance screens.

Thanks much
~Boots

7 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 30 Mar 2010, 08:25 AM
Hi Ben,

 I answered you support thread - this seems like a bug in the Docking control and we will fix for one of the upcoming releases.

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
Boots
Top achievements
Rank 1
answered on 31 Mar 2010, 11:00 PM
Hello Miroslav,

Thanks for getting back to me so quick. The reason we're running the internal build is we wanted to be able use the column drag and drop on the RadGridView. in q1 2010 it doesn't work inside of a windows form. and we also wanted to use the zoom option on the chart. The internal build 2010.03.26 RadGridView works but the RadDock doesn't work.

Any Ideas on when the fix for RadDock will be available?

Thanks Again,
~Boots
0
Miroslav Nedyalkov
Telerik team
answered on 01 Apr 2010, 01:00 PM
Hi Ben,

 The next internal build should be available by the end of the week.

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
Boots
Top achievements
Rank 1
answered on 02 Apr 2010, 07:01 PM
Hello Miroslav,

Downloaded 2010.04.02 internal build and tried the docking control. I'm still getting the error.

Thanks,
~Boots
0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2010, 11:47 AM
Hello Ben,

 Do you mean the exception with the Docking control or some other error? Could you please send us a sample project that reproduces the error, because most probably the problem is not the same problem I thought?

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
Boots
Top achievements
Rank 1
answered on 06 Apr 2010, 08:57 PM
Hi Miroslav,

Sorry I should have been more specific. The error I'm hitting is for the Docking control. I submitted a support ticket with an attached project that reproduces the error I'm receiving.






the ticket ID is : 297418

Thanks Again,
~Boots
0
Miroslav Nedyalkov
Telerik team
answered on 07 Apr 2010, 07:48 AM
Hello Ben,

 I answered the support ticket. I logged the error and we will fix the problem for one of the upcoming releases.

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