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

Error when changing implicit styles

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerel
Top achievements
Rank 2
Jerel asked on 11 May 2011, 05:20 PM
When I change the implicit style of the RadGridView while the Grid is Grouped in XAML, the below exception occurs. This only occurs if the Grid is Grouped, otherwise it works perfectly everywhere else. If I power through the error, nothing bad happens, but the GroupHeader disappears. Switching the Styles, re-reveals the headers, but keeps throwing the error. Also, if I try to remove the Group, via UI, I get the same exception after changing styles. If I remove the groups before changing the styles, changing the styles works perfectly, but adding a group throws the exception.

{System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
   at Telerik.Windows.Controls.GridView.GridViewBaseVirtualizingPanel.getGenerator()
   at Telerik.Windows.Controls.GridView.GridViewBaseVirtualizingPanel.get_ItemContainerGenerator()
   at Telerik.Windows.Controls.GridView.GridViewBaseVirtualizingPanel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)
   at Telerik.Windows.Controls.GridView.GridViewBaseVirtualizingPanel.OnItemsChangedHandler(Object sender, ItemsChangedEventArgs args)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.OnRefresh()
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Refresh()
   at Telerik.Windows.Controls.GridView.GridViewGroupRow.OnItemsSourceChanged(Object oldValue, Object newValue)
   at Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(DependencyObject origin, DependencyPropertyChangedEventArgs args)
   at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(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 System.Windows.DependencyObject.ClearValue(DependencyProperty dp)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ClearContainerForGroupOverride(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.UnlinkContainerFromItem(DependencyObject container, Object item)
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.RemoveAll()
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.OnRefresh()
   at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.Refresh()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.RefreshVisualizedRows()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.AppearancePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(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.InvalidateProperty(DependencyProperty property)
   at MS.Internal.FrameworkCallbacks.InvalidateProperty(IntPtr nativeTarget, UInt32 propertyId)}

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 May 2011, 06:03 PM
Hi Jerel,

 

I have tried to reproduce such a behavior, but I was not able to.
May you please share the source code you are currently using?
It could be great if you can isolate the problem in a runnable application and send it to us in a new support ticket, which we can test locally.
Any additional information about the grid version you used will be highly appreciated as well.
Thus we would be able to provide you with an appropriate solution.



Greetings,
Vanya Pavlova
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
Jerel
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
Share this question
or