When refreshing my data source

4 posts, 0 answers
  1. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 25 May 2009 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 26 May 2009 Link to this post

    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.
  3. Plaza
    Plaza avatar
    1 posts
    Member since:
    Jan 2016

    Posted 17 Dec 2018 Link to this post

    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 !

  4. Dimitar
    Admin
    Dimitar avatar
    2918 posts

    Posted 18 Dec 2018 Link to this post

    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 onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top