We are using RadGridView for Silverlight 3 and when the control is bound to an empty data source (no items in grid), we are facing with a strange behaviour. When we use mouse scrolling on the empty grid view, we have an argument out of range exception with the following stack trace:
at 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.GridViewVirtualizingPanel.LineUp()
at Telerik.Windows.Controls.GridView.GridViewScrollViewer.OnMouseWheel(MouseWheelEventArgs e)
at System.Windows.Controls.Control.OnMouseWheel(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
This behaviour doesn't happen with the Silverlight 2 version of the same control.
Have you any idea or do you know some workaround?
Thank you so much
Adriano