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

Exception on simply adding the control to a Grid

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Giorgio Galante
Top achievements
Rank 1
Giorgio Galante asked on 29 Nov 2008, 06:20 AM

<

Telerik_Windows_Controls:RadGridView Margin="0,0,6,183" Height="400" AutoGenerateColumns="true" MinHeight="400" MinWidth="400" Width="400"/>

Produces the following stacktrace (removing the height/minheight/width/minwidth and margin still cause this error) in VS.NET and in Expression Blend 2.5:

 

Object reference not set to an instance of an object.

 

at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.RenderTargetBitmapRender(HostingRenderTargetBitmap bitmap, UIElement visual, Int32& dirtyX, Int32& dirtyY, Int32& dirtyWidth, Int32& dirtyHeight) at System.Windows.Interop.HostingRenderTargetBitmap.Render(UIElement visual) at MS.Internal.Silverlight.Host.RuntimeInterop.RenderElementToTargetBitmap(Int32 elementKey, Int32 targetBitmapIdentifier) at MS.Internal.Silverlight.Host.Interop.RenderElementToTargetBitmap(Int32 element, Int32 targetBitmapIdentifier, ISilverlightContentDownloadCallback urlcallback) at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateBitmap() at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateTree() at MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

 

1 Answer, 1 is accepted

Sort by
0
Jimmy
Telerik team
answered on 01 Dec 2008, 01:51 PM
Hello Giorgio Galante,

Thank you for taking the time to write to us. The exception you are referring to is a known issue in our GridView for Silverlight CTP and it will be fixed in the Beta that is scheduled in mid December.

If you have any more questions or find other bugs please consider writing to us again.

Regards,
Jimmy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Giorgio Galante
Top achievements
Rank 1
Answers by
Jimmy
Telerik team
Share this question
or