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

GridView throwing exception when scrolling

1 Answer 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan Moura
Top achievements
Rank 1
Ivan Moura asked on 30 Jul 2010, 08:39 PM
I have a GridView like this:

<telerikDocking:RadPaneGroup 
                    VerticalAlignment="Stretch"
                    HorizontalAlignment="Stretch"
                    d:IsHidden="True" 
                    MinHeight="300" >
                    <telerikDocking:RadPane Header="Propriedades" 
                                            CanUserClose="False"
                                            CanDockInDocumentHost="False"
                                            CanUserPin="False" 
                                            CanFloat="False"
                                            IsPinned="True"
                                            IsSelected="True" >
                           <telerik:RadGridView x:Name="propertyGridView"  />
                    </telerikDocking:RadPane>
</telerikDocking:RadPaneGroup>

 And when I try to vertically scroll the Grid it throws a Exception:

Agente de Usuário: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM; .NET4.0C; .NET4.0E)
Carimbo de data/hora: Fri, 30 Jul 2010 19:36:18 UTC


Mensagem: Unhandled Error in Silverlight Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ArgumentException: Value does not fall within the expected range.
   in MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   in MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
   in MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
   in System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
   in System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
  in System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   in System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   in System.Windows.Controls.ContentControl.set_Content(Object value)
   in Telerik.Windows.Controls.GridView.GridViewCell.CreateCellElement(GridViewColumn column, Object dataItem)
   in Telerik.Windows.Controls.GridView.GridViewCell.SetCellElement()
   in Telerik.Windows.Controls.GridView.GridViewRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column)
   in Telerik.Windows.Controls.GridView.DataCellsPresenter.PrepareContainerForItemOverride(DependencyObject element, Object item)            in Telerik.Windows.Controls.GridView.DataCellsPresenter.OnItemChanged(Object oldItem, Object newItem)
in Telerik.Windows.Controls.GridView.DataCellsPresenter.set_Item(Object value)
   in Telerik.Windows.Controls.GridView.GridViewRowItem.OnItemChanged(Object oldItem, Object newItem)
   in Telerik.Windows.Controls.GridView.GridViewRow.OnItemChanged(Object oldItem, Object newItem)
   in Telerik.Windows.Controls.RadRowItem.OnItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   in Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
   in System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   in System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   in System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   in System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   in Telerik.Windows.Controls.RadRowItem.set_Item(Object value)
   in Telerik.Windows.Controls.GridView.GridViewRowItem.PrepareRow(Object item, GridViewDataControl owningDataGrid)
   in Telerik.Windows.Controls.GridView.GridViewRow.PrepareRow(Object item, GridViewDataControl owningDataGrid)
   in Telerik.Windows.Controls.GridView.GridViewDataControl.PrepareContainerForItemOverride(DependencyObject element, Object item)
   in Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)
   in Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
   in Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertContainer(Int32 childIndex, UIElement container, Boolean isRecycled)
   in Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertRecycledContainer(Int32 childIndex, UIElement container)
   in Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.AddContainerFromGenerator(Int32 childIndex, UIElement child, Boolean newlyRealized)
   in Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
   in System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)     

Line: 64
Character: 13
Code: 0

Any Ideas on what is causing this error and  how to resolve this Issue? Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 02 Aug 2010, 09:40 AM
Hello Ivan Moura,

I have tried to reproduce the exception using your code snippet but everything worked fine on my end. Please, take a look at this short video and let me know if I have missed something. It will be great to send us a sample project or to give us some more details about your scenario.

Best wishes,
Yordanka
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ivan Moura
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or