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

Mouse Scrolling Crash for Gridview in new version 2011.1.419.1040

7 Answers 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hrushikesh
Top achievements
Rank 1
Hrushikesh asked on 07 May 2011, 03:21 AM
We are getting Issue when we scroll with the mouse on the Grid. if you do up and down with the mouse scroll it come. The Grid contains ROwDetail which again contain grid. Below is the structure of that  grid

<my:CustomDataGrid RowDetailsVisibilityMode="VisibleWhenSelected" telerik:StyleManager.Theme="Windows7" KeyUp="grdCasesReportList_KeyUp" KeyDown="grdCasesReportList_KeyDown" ShowGroupPanel="False" Loaded="OuterGrid_Loaded"
                                               x:Name="grdCasesReportList" RowDetailsVisibilityChanged="OuterGrid_RowDetailsVisibilityChanged"
                                               SelectionChanged="OuterGrid_SelectionChanged"  AutoGenerateColumns="False" ShowColumnFooters="True"  
                                               Margin="0,-1,0,1" MouseRightButtonDown="OuterGrid_MouseRightButtonDown" MouseRightButtonUp="OuterGrid_MouseRightButtonUp" >
  
                                <telerikGridView:RadGridView.Columns>
                                    <telerikGridView:GridViewToggleRowDetailsColumn />
                                    <telerikGridView:GridViewDataColumn
                                         DataMemberBinding="{Binding report_desc}" 
                                        Header="Report Name" IsReadOnly="True" >
                                    <telerikGridView:GridViewDataColumn.AggregateFunctions>
                                        <telerikData:CountFunction Caption="Total Items: "  />
                                    </telerikGridView:GridViewDataColumn.AggregateFunctions>
                                    </telerikGridView:GridViewDataColumn>
                                    <telerikGridView:GridViewDataColumn
                                         DataMemberBinding="{Binding report_description}" 
                                        Header="Description" IsReadOnly="True" />
  
                                </telerikGridView:RadGridView.Columns>
                                <telerikGridView:RadGridView.RowDetailsTemplate>
                                    <DataTemplate>
                                        <StackPanel Margin="25,0,25,0" Height="auto">
                                            <my:CustomDataGrid x:Name="grdCasesSavedReportList" ShowGroupPanel="False" KeyDown="grdCasesSavedReportList_KeyDown" KeyUp="grdCasesSavedReportList_KeyUp" RowIndicatorVisibility="Collapsed"  Height="Auto" 
                                                               telerik:StyleManager.Theme="Windows7" AutoGenerateColumns="False" Margin="0,0,0,0" Loaded="InnerGrid_Loaded"                                                               
                                                               SelectionChanged="InnerGrid_SelectionChanged" MouseRightButtonDown="InnerGrid_MouseRightButtonDown" MouseRightButtonUp="InnerGrid_MouseRightButtonUp">
                                                <telerikGridView:RadGridView.Columns>
                                                    <telerikGridView:GridViewDataColumn
                                                         DataMemberBinding="{Binding report_def_uuid}" 
                                                        Header="Report Id" IsReadOnly="True" IsVisible="False" />
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding report_name}" 
                                                        Header="Report Name" IsReadOnly="True" IsVisible="False"/>
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding report_desc}" 
                                                        Header="Report Name" IsReadOnly="True" />
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding report_def_title}" 
                                                        Header="Title" IsReadOnly="True" />
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding report_def_subtitle}" 
                                                        Header="Sub Title" IsReadOnly="True" />
                                                    <telerikGridView:GridViewDataColumn
                                                         DataMemberBinding="{Binding is_public}" 
                                                        Header="Public" IsReadOnly="True"  />
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding owner_user}" 
                                                        Header="Owner Name" IsReadOnly="True" />
                                                    <telerikGridView:GridViewDataColumn 
                                                         DataMemberBinding="{Binding report_def_comments}" 
                                                        Header="Comments" IsReadOnly="True" />
                                                </telerikGridView:RadGridView.Columns>
                                            </my:CustomDataGrid>
                                            <Border x:Name="brdEmptyCase" Visibility="Collapsed" Height="30" Margin="0,0,0,0" Background="#FFC6C6C6" VerticalAlignment="Top">
                                                <TextBlock x:Name="txtEmptyCase" Text="No Report definitions Available" Foreground="Black" FontWeight="Bold" Height="25" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                            </Border>
  
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikGridView:RadGridView.RowDetailsTemplate>
  
                            </my:CustomDataGrid>



Please look into it and let us know. We are in the Mid of some release.

Thank you
Hrushikesh


7 Answers, 1 is accepted

Sort by
0
Hrushikesh
Top achievements
Rank 1
answered on 02 Jun 2011, 11:00 AM
Adding the Error Message also:

SCRIPT5022: Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.GridView.SelectiveScrollingGrid.LayoutAwareBindingHelperProxy`1..ctor(T targetProperty, ILayoutObserver observer, Action`3 contentHorizontalOffsetCallback, Action`3 contentVerticalOffsetCallback)
at Telerik.Windows.Controls.GridView.SelectiveScrollingGrid.BindClipping(FrameworkElement element, GridViewScrollViewer scrollViewer)
at Telerik.Windows.Controls.GridView.SelectiveScrollingGrid.element_Loaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

0
Milan
Telerik team
answered on 02 Jun 2011, 11:57 AM
Hello Hrushikesh,

Could you please download the latest Internal Build from this Monday which resolves the issue. 


Best wishes,
Milan
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
0
Ok
Top achievements
Rank 1
answered on 09 Nov 2012, 03:03 PM

Hi,
This issue is not resolved it seems.
The following xaml is my Grid and below that is the exception that i get once i scroll using mouse.

 

<

 

 

telerik:RadGridView ItemsSource="{Binding Changes}" IsReadOnly="True" ShowGroupPanel="False">

 

<telerik:RadGridView.Columns>

<telerik:GridViewColumn Header="Change" ScrollViewer.VerticalScrollBarVisibility="Auto"

Width="*">

 

<telerik:GridViewColumn.CellTemplate>

<DataTemplate>

<TextBlock Text="{Binding}" ToolTipService.ToolTip="{Binding}" Foreground="White" Style="{StaticResource StdTextBlockStyle}" TextTrimming="WordEllipsis" TextWrapping="NoWrap" />

</DataTemplate>

</telerik:GridViewColumn.CellTemplate>

</telerik:GridViewColumn></telerik:RadGridView.Columns>

</telerik:RadGridView>



Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Boolean b)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at System.Windows.Controls.ToolTip.BeginClosing()
   at System.Windows.Controls.ToolTip.OnIsOpenChanged(Boolean isOpen)
   at System.Windows.Controls.ToolTip.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at System.Windows.Controls.ToolTipService.UnregisterToolTip(UIElement owner)
   at System.Windows.Controls.ToolTipService.OnToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
   at System.Windows.Data.BindingExpression.SendDataToTarget()
   at System.Windows.Data.BindingExpression.SourceAcquired()
   at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
   at System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyProperty dp)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   at Telerik.Windows.Controls.GridView.DataCellsPresenter.OnItemChanged(Object oldItem, Object newItem)
   at Telerik.Windows.Controls.GridView.GridViewRow.OnItemChanged(Object oldItem, Object newItem)
   at Telerik.Windows.Controls.RadRowItem.OnItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.ClearValueInternal(DependencyProperty dp)
   at Telerik.Windows.Controls.GridView.GridViewRow.ClearRow(GridViewDataControl owningDataGrid)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ClearContainerForItemOverride(DependencyObject element, Object item)
   at Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.ClearContainerForItem(DependencyObject container, Object item)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.UnlinkContainerFromItem(DependencyObject container, Object item, Boolean isRecycled)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Remove(GeneratorPosition position, Int32 count, Boolean isRecycling)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IRecyclingItemContainerGenerator.Recycle(GeneratorPosition position, Int32 count)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.CleanupRange(IList children, IItemContainerGenerator generator, Int32 startIndex, Int32 count)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.CleanupContainers(Int32 firstViewport, BaseItemsControl itemsControl)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)  
0
Dimitrina
Telerik team
answered on 09 Nov 2012, 03:13 PM
Hi,

 I were not able to reproduce the issue with our most recent version - Q3 2012 (2012.3.1017). May I ask you to test with that version?

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ok
Top achievements
Rank 1
answered on 19 Nov 2012, 08:44 PM
I updated to the latest telerik build today.
It is still occurring every time.

tip:
Put the grid in a small popup with less height( lets say 400) and width (400)
while u hover over the individual item, u will see the tooltip of each row. At that point, start scrolling with the mouse ball, don't scroll too slow.
it will crash every time.
0
Anne Lyon
Top achievements
Rank 1
answered on 20 May 2016, 09:04 AM

Is there a solution to the problem mentioned above? I have a GridView with a TooltipTemplate for each GridViewDataColumn. If I scroll (using the mouse wheel) while the mousePointer is pointing at a column with a Tooltip, I get an error 4004 crash. If the mousePointer points somewhere without a tooltip everything is fine. Obviously scrolling while the Grid tries to show a tooltip does not combine.

Any workaround?

Thanks!

0
Stefan
Telerik team
answered on 24 May 2016, 02:08 PM
Hello Anne,

As this issue has already been fixed, can you please try updating to the latest assemblies version? If the issue is still reproducible, would it be possible for you to demonstrate it in a sample application and add it as attachment in a new support thread, so we can further investigate?

Thank you in advance for your cooperation.

All the best,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Hrushikesh
Top achievements
Rank 1
Answers by
Hrushikesh
Top achievements
Rank 1
Milan
Telerik team
Ok
Top achievements
Rank 1
Dimitrina
Telerik team
Anne Lyon
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or