Hello,
I have installed the SL3 controls and am trying to get Docking working with the following Xaml :
<telerikDocking:RadDocking x:Name="docking1">
</telerikDocking:RadDocking>
This works fine, but when I add a SplitContainer:
<telerikDocking:RadDocking x:Name="docking1">
<telerikDocking:RadSplitContainer InitialPosition="DockedRight">
</telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking>
An exception is thrown :
{System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)}
I'm guessing it's something to do with my setup - I just extracted the zip (RadControls_For_Silverlight3_Trial_2009.3.27.zip) to a new directory and referenced Telerik.Windows.Controls, Docking and Navigation dlls directly. There is also nothing else in my Xaml or code behind. I am also definitely running the SL3 Dev runtime.
Also, the Docking Demo provided is now broken - I get this exception instead though :
{System.Windows.Markup.XamlParseException: AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR [Line: 22 Position: 32]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Telerik.Windows.Examples.Examples.Docking.FirstLook.Example.InitializeComponent()
at Telerik.Windows.Examples.Examples.Docking.FirstLook.Example..ctor()}
Any help with this appreciated,
Jamie
7 Answers, 1 is accepted
Yes I have added these references but still no luck I'm afraid..
I have tried creating a brand new SL3 project and adding just a RadDocking control and a single child RadSplitContainer control and can see everything perfectly in the VS Preview screen, but when I run the app I still get the same old JS error.
{System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)}
I can step through the code and it appears to be falling over after InitializeComponent() and after the RootVisual has been set in the ApplicationStartup event.
Thanks,
Jamie
Kind regards,
Miroslav Nedyalkov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Here's a list of my references and their version numbers:
mscorlib
v2.0.50727
system
v2.0.50727
System.Core
v2.0.50727
System.Net
v2.0.50727
System.Windows
v2.0.50727
System.Windows.Browser
v2.0.50727
System.Xml
v2.0.50727
Telerik.Windows.Controls
2009.1.327.1020
Telerik.Windows.Controls.Docking
2009.1.327.1020
Telerik.Windows.Controls.Navigation
2009.1.327.1020
This is my VS setup:
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: Enterprise
Microsoft Silverlight Projects 2008 91899-153-0000007-60981
Microsoft Silverlight Projects 2008
Version 9.0.30729.4063
etc etc...
My SL runtime and browser:
Version: 3.0.40307.0
IE 8.0.6001.18702
I don't know if it's relevant but my system drive is letter E and I run my SL projects off my F drive, so hopefully there are no absolute paths floating around pointing to "C:\" drive!
I'm also running Vista 32bit SP1 en-NZ.
My Telerik SL3 controls are installed in a separate directory on my E drive, in isolation to the Q1 2009 directory in Program Files.
Here is a screenshot of my vs project:
http://www.flickr.com/photos/36587020@N04/3420889534/sizes/o/
And here is a screenshot of the exception:
http://www.flickr.com/photos/36587020@N04/3420081495/sizes/o/
Anything else you would like to know please let me know,
Thanks
Jamie.
Regards,
Miroslav Nedyalkov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I've just tried running the compiled application inside a fresh VM with SL3 Beta runtime installed, and I still get the same error message..
Cheers,
Jamie.