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

When refreshing my data source

3 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Delgado-Lopez
Top achievements
Rank 1
Jorge Delgado-Lopez asked on 26 May 2009, 04:39 AM
Hi.

An exception is thrown when I reset my data source (first to null to clear it), but I dont know when it really happens. It happens very seldom but it does happen.

Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.TableViewDefinitionBase.GetRowHeight(GridViewRowInfo rowInfo, IGridView gridView)
   at Telerik.WinControls.UI.GridTableBodyElement.GetRowHeight(GridRowElement row, Single y, SizeF availableSize)
   at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)

Thanks,
-j

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 26 May 2009, 08:48 AM
Hi Jorge Delgado-Lopez,

Thank you for contacting us.

We have never observed this issue before. Nevertheless, we will investigate it further. Maybe the issue is related with some events that you handle (e.g CellFormatting, CellEndEdit?). Please write us when you find the exact sequence to reproduce the issue. Please send us also your project, so we can review it and locate the issue.

I am looking forward to your reply.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Plaza
Top achievements
Rank 1
answered on 17 Dec 2018, 08:59 AM

I have same problem, Error is:

objEx.Message: Object reference not set to an instance of an object. objEx.StackTrace: at Telerik.WinControls.Layouts.ContextLayoutManager.LayoutQueue._removeRequest(Request entry) at Telerik.WinControls.Layouts.ContextLayoutManager.LayoutQueue.RemoveOrphans(RadElement parent) at Telerik.WinControls.Layouts.ContextLayoutManager.LayoutQueue.Add(RadElement e) at Telerik.WinControls.RadElement.InvalidateArrange(Boolean recursive) at Telerik.WinControls.RadElement.Measure(SizeF availableSize) at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout() at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)

but I dont know when it really happens, I need help !

0
Dimitar
Telerik team
answered on 18 Dec 2018, 11:28 AM
Hi,

The stack traces are different and this indicates that this is another issue. Usually, exceptions that lead to ContextLayoutManager are connected to cross-thread operations. Please make sure that you are not updating the grid from other than the UI thread. 

I hope this will be useful. Let me know if you have additional questions.


Regards,
Dimitar
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Jorge Delgado-Lopez
Top achievements
Rank 1
Answers by
Jack
Telerik team
Plaza
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or