ERROR GridView.GridViewVituralizingPanel.GetChildIndexByPhysicalOffset

4 posts, 0 answers
  1. Huy Truong The
    Huy Truong The avatar
    32 posts
    Member since:
    Mar 2008

    Posted 21 Aug 2009 Link to this post

    Hello,
    I am using radwindow and I found the following problem:

    -          I use a telerik radwindow which contains a telerik radgridview and a button .When the radwindow is opened, i click to the button and get data to fill in the radgridview. When i do that, sometimes i have the following error :

     

    Error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1':

    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

    Paramter name: index 

    System.ThrowHelper.ThrowArgumentOutOfRangeException (ExceptionArgument argument, ExceptionResource resource)

    at System.ThrowHelper.ThrowArgumentOutOfRangeException()

    at System.Collections.Generic.List`1.get_Item(Int32 index)

    at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)

    at

    Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.GetChildIndexByPhysicalOffset(double offset)

    at

    Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.UpdateFirstVisibleChildIndex(Double offset)

    at

    Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.SetVerticalOffset(Double offset)

    at

    Telerik.Windows.Controls.GridView.GridViewVituralizingPanel.ResetVerticalOffset()

    at

    Telerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(Size availableSize)

    at System.Windows.FrameworkElement.MeasureOverride(intPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

    Code:0

    ………..

    Do you know why this error happen? Thank you for your help

    Huy


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Aug 2009 Link to this post

    Hello Huy,

    I tried this however everything worked fine - you can check the attached project.

    All the best,
    Vlad
    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. DevCraft banner
  4. Huy Truong The
    Huy Truong The avatar
    32 posts
    Member since:
    Mar 2008

    Posted 21 Aug 2009 Link to this post

    Hello,

    Thanks for your support. I got the sample project of Telerik about radgridview problem. However, I can’t  open it because it uses Silverlight V3.0, not in Silverlight V2.0. So would you send me another sample project using Silverlight V2.0?

    I’m looking forward to your answer. Thank you very much.

    Huy

  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 24 Aug 2009 Link to this post

    Hello Huy Truong The,

    Here is the SL2 project.

    Greetings,
    Milan
    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.
Back to Top