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

Multiple grouping

6 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 01 Oct 2009, 02:10 PM
Hi

I get a error (the application freezes) when I try to do a multiple grouping on you gridview demo with 1 milion records

Regards
Martin

6 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 01 Oct 2009, 03:24 PM
Hello Martin,

Could you please send us the exact error message that you receive when you try to group? A stack trace will also come in handy.

All the best,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Martin
Top achievements
Rank 1
answered on 01 Oct 2009, 04:26 PM
Hello,

Webpage error details:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.4; .NET CLR 3.0.30729; OfficeLivePatch.1.3)
Timestamp: Thu, 1 Oct 2009 16:15:38 UTC


Message: Unhandled Error in Silverlight 2 Application [Arg_ArgumentException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=Arg_ArgumentException
Line: 1
Char: 1
Code: 0
URI: http://demos.telerik.com/silverlight/SplashScreen/splashscreen.js


Message: Unhandled Error in Silverlight 2 Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ArgumentOutOfRangeException: [Arg_ArgumentOutOfRangeException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=Arg_ArgumentOutOfRangeException
Parameter name: index
   at System.Windows.PresentationFrameworkCollection`1.GetItemDependencyObject(Int32 index)
   at System.Windows.Controls.UIElementCollection.GetItemImplSkipMethodPack(Int32 index)
   at System.Windows.PresentationFrameworkCollection`1.get_Item(Int32 index)
   at Telerik.Windows.Controls.GridView.BaseVirtualizingPanel.RemoveUnneededChildrenOnScrollingUp(Int32 index)
   at Telerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)     

Line: 55
Char: 13
Code: 0
URI: http://demos.telerik.com/silverlight/

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.4; .NET CLR 3.0.30729; OfficeLivePatch.1.3)
Timestamp: Thu, 1 Oct 2009 16:19:08 UTC


Message: Unhandled Error in Silverlight 2 Application [InvalidOperation_EnumFailedVersion]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=InvalidOperation_EnumFailedVersion   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at System.Linq.Enumerable.<CastIterator>d__aa`1.MoveNext()
   at Telerik.Windows.Data.GroupExtensions.LeafIndexOf(IEnumerable`1 groups, Object item)
   at Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(Object item)
   at Telerik.Windows.Data.QueryableCollectionView.IndexOf(Object item)
   at Telerik.Windows.Data.QueryableCollectionView.MoveCurrentTo(Object item)
   at Telerik.Windows.Data.Selection.SelectionHandler.SynchronizeCurrentItem()
   at Telerik.Windows.Data.Selection.SelectionHandler.SynchronizePublicProperties()
   at Telerik.Windows.Data.Selection.SelectionHandler.EndSelection()
   at Telerik.Windows.Data.Selection.SelectionHandler.collectionView_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.RefreshAndRaiseCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.Refresh()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
   at Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
   at Telerik.Windows.Data.RadObservableCollection`1.RemoveItem(Int32 index)
   at Telerik.Windows.Data.ObservableItemCollection`1.RemoveItem(Int32 index)
   at System.Collections.ObjectModel.Collection`1.Remove(T item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.Ungroup(String member)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass2a.<GroupingRequested>b__29()
   at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.GroupingRequested(Object origin, GroupingRequestedEventArgs e)
Line: 1
Char: 1
Code: 0
URI: http://demos.telerik.com/silverlight/


Message: Unhandled Error in Silverlight 2 Application [ArgumentOutOfRange_ListInsert]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=ArgumentOutOfRange_ListInsert
Parameter name: index   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.InsertGroupDescriptor(GroupDescriptor groupDescriptor, Int32 index)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(String member, Object displayContent, Nullable`1 insertionIndex)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass2a.<GroupingRequested>b__29()
   at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.GroupingRequested(Object origin, GroupingRequestedEventArgs e)
Line: 1
Char: 1
Code: 0
URI: http://demos.telerik.com/silverlight/

Fejl: Unhandled Error in Silverlight 2 Application [InvalidOperation_EnumFailedVersion]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.40818.0&File=mscorlib.dll&Key=InvalidOperation_EnumFailedVersion   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at System.Linq.Enumerable.<CastIterator>d__aa`1.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.Sum(IEnumerable`1 source)
   at System.Linq.Enumerable.Sum[TSource](IEnumerable`1 source, Func`2 selector)
   at Telerik.Windows.Data.GroupExtensions.LeavesCount(IEnumerable`1 groups)
   at Telerik.Windows.Data.QueryableCollectionView.get_ItemCount()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.RefreshAndRaiseCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.QueryableCollectionView.Refresh()
   at Telerik.Windows.Data.QueryableCollectionView.EndDefer()
   at Telerik.Windows.Data.QueryableCollectionView.DeferHelper.Dispose()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformGrouping(String member, Object displayContent, Nullable`1 insertionIndex)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass2a.<GroupingRequested>b__29()
   at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.GroupingRequested(Object origin, GroupingRequestedEventArgs e)
Kildefil: http://demos.telerik.com/silverlight/#GridView/Performance/ClientSide
Linje: 0

Regards
Martin
0
Milan
Telerik team
answered on 02 Oct 2009, 12:33 PM
Hello Martin,

Such errors might occur when using asynchronous data loadmode. Is the grid unsing this DataLoadMode by any chance?

Greetings,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Martin
Top achievements
Rank 1
answered on 05 Oct 2009, 02:31 PM
Yes, the gridview on  http://demos.telerik.com/silverlight/ is using async loadmode.

Is there no way to prevent this?

Regards
Martin
0
Milan
Telerik team
answered on 06 Oct 2009, 07:10 AM
Hi Martin,

Well, we are currently investigating those problems but for the time being there is no workaround that we can provide. Currently the only solution for such problems is to turn off the asynchronous load mode by setting DataLoadMode to "Synchronous".

Kind regards,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jaime Bula
Top achievements
Rank 2
answered on 13 Feb 2012, 09:57 PM
Hi,

We have this exact issue, we are using the latest libraries available. Our stack trace goes as follows:

An error of type System.Exception occurred. System.InvalidOperationException: [InvalidOperation_EnumFailedVersion] Argumentos: Las cadenas de recursos de depuración no están disponibles. La clave y los argumentos suelen proporcionar suficiente información para diagnosticar el problema. Vea http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.00&File=mscorlib.dll&Key=InvalidOperation_EnumFailedVersion en System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) en System.Collections.Generic.List`1.Enumerator.MoveNextRare() en System.Collections.Generic.List`1.Enumerator.MoveNext() en System.Linq.Enumerable.
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Milan
Telerik team
Martin
Top achievements
Rank 1
Jaime Bula
Top achievements
Rank 2
Share this question
or