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

Exception while filtering

5 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Miłosz Cechnicki
Top achievements
Rank 1
Miłosz Cechnicki asked on 25 Jan 2010, 10:48 AM
Hi,
I encountered a problem while filtering or even performing Clear() on a collection that is binded to a GridView.

Steps to reproduce:
1. Loaded so many items to grid, that it show a scroll bar;
2. Scroll somewhere to the end of the list;
3. Apply a filter, that cuts let's say a half of the rows;
4. You should get a Visual Studio Just-In-Time Debugger Exception with message:
        System.IndexOutOfRangeException: Index was outside the bounds of the array.

The problem seems to occur also with your DataGridView->Performance example.
When selecting any of the last items, and applying the filter - everything disappears.

Thank for you help in advance,

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jan 2010, 01:29 PM
Hi,

I've just tried our online demo however everything worked fine - you can check the attached screenshot for reference.

Regards,
Vlad
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
Miłosz Cechnicki
Top achievements
Rank 1
answered on 27 Jan 2010, 07:30 AM
Hi,
I've tried the online demo once again using both IE and Firefox. Steps I did:
1. Open the Grid -> Performance example
2. Scroll down the grid and click on the last element
3. Select filter on the Name column and select the first on the list
4. The result of above steps is in the attached file.

Below also the detailed message from the IE exception window (as not everthing is visible on the screenshot).
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Wed, 27 Jan 2010 07:29:54 UTC


Message: Unhandled Error in Silverlight 3 Application Index was outside the bounds of the array.   at Telerik.Windows.Controls.GridView.IndexTree.CumulativeValue(Int32 endIndex)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ArrangeOverride(Size finalSize)
   at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Line: 1
Char: 1
Code: 0
URI: http://demos.telerik.com/silverlight/SplashScreen/splashscreen.js


Message: Unhandled Error in Silverlight 3 Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Telerik.Windows.Controls.GridView.IndexTree.CumulativeValue(Int32 endIndex)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ArrangeOverride(Size finalSize)
   at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)     

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


Exactly same error I got in my application. I got it also yesterday on the treeView control.

Best regards
0
Accepted
Vlad
Telerik team
answered on 27 Jan 2010, 09:34 AM
Hello,

We were able to reproduce this exception and we will do our best to provide fix for this in our upcoming latest internal build this Friday. I've added 2000 Telerik points to your account

Sincerely yours,
Vlad
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
KodeKreachor
Top achievements
Rank 1
answered on 08 Apr 2010, 04:19 PM
Hello,
We are running into the exact same issue. Has this hotfix been released yet?

Thanks,
Eric
0
Vlad
Telerik team
answered on 09 Apr 2010, 06:17 AM
Hello Eric,

Indeed this was fixed with Q1 2010 - you can check the demo for reference.

Best wishes,
Vlad
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
Miłosz Cechnicki
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Miłosz Cechnicki
Top achievements
Rank 1
KodeKreachor
Top achievements
Rank 1
Share this question
or