Multiple grouping

7 posts, 0 answers
  1. Martin
    Martin avatar
    8 posts
    Member since:
    Aug 2009

    Posted 01 Oct 2009 Link to this post

    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
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 01 Oct 2009 Link to this post

    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.
  3. Martin
    Martin avatar
    8 posts
    Member since:
    Aug 2009

    Posted 01 Oct 2009 Link to this post

    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
  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 02 Oct 2009 Link to this post

    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.
  5. Martin
    Martin avatar
    8 posts
    Member since:
    Aug 2009

    Posted 05 Oct 2009 Link to this post

    Yes, the gridview on  http://demos.telerik.com/silverlight/ is using async loadmode.

    Is there no way to prevent this?

    Regards
    Martin
  6. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 06 Oct 2009 Link to this post

    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.
  7. Jaime Bula
    Jaime Bula avatar
    45 posts
    Member since:
    Apr 2009

    Posted 13 Feb 2012 Link to this post

    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.d__aa`1.MoveNext() en System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() en System.Linq.Enumerable.Sum(IEnumerable`1 source) en Telerik.Windows.Data.QueryableCollectionViewGroupRoot..ctor(IEnumerable`1 originalGroups, IEnumerable`1 groupDescriptors, IEnumerable`1 sortDescriptors, Func`2 filterFunc, Type itemType) en Telerik.Windows.Data.QueryableCollectionView.EnsureRootGroup() en Telerik.Windows.Data.QueryableCollectionView.get_Groups() en Telerik.Windows.Data.QueryableCollectionView.get_InternalCount() en Telerik.Windows.Data.DataItemCollection.get_Count() en Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) en System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) en Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e) en Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) en Telerik.Windows.Data.Listener`2.ReceiveWeakEvent(Object sender, TArgs args) en Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) en Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args) en Telerik.Windows.Data.QueryableCollectionView.b__1a(Object s, RunWorkerCompletedEventArgs e) en System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) en System.ComponentModel.BackgroundWorker.b__1(Object state)

    As expected it uses Async data load, We would change to Sync but our grid are quite quite large (30.000+) records, the error can also happen when you "Search as you type".

    We haven't been able to set the steps to reproduce the exception, but we get about 6 daily reports on this issue alone.

    Best Regards.

Back to Top