Completed
Last Updated: 13 Jul 2016 11:44 by ADMIN
Jason
Created on: 14 Apr 2015 15:41
Category: GridView
Type: Bug Report
0
GroupMemberPath
StackOverFlowException when the GroupMemberPath is set to a different path to the data member and the column is grouped, and filtered.

As an example I add a column to the grid:
columns.Add(new GridViewDataColumn() { DataMemberBinding = new Binding("CustomerId"), GroupMemberPath = "CustomerName", SortMemberPath="CustomerName", Width = 300 });

When the grid appears, drag the CustomerId column to the grouping area
Click the filter icon on the CustomerId column
Click a checkbox in the filtering control to select an item
Exception occurs
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
4 comments
ADMIN
Dimitrina
Posted on: 20 Apr 2015 08:23
Thank you for providing these additional details.

There is a similar request already logged here:
http://feedback.telerik.com/Project/143/Feedback/Details/101823-stackoverflowexception-is-thrown-when-perfoming-sorting-filtering-or-grouping-on

It is with status Completed, however, it seems the issue is still reproducible with the specific setup you have. The development team will review the project and proceed further.
Thank you for sharing the workaround you came up with.  

Kind Regards,
Didie
Jason
Posted on: 16 Apr 2015 14:17
I was able to get around the issue by creating a custom groupdescriptor for columns of this nature during the Grouping event.
Jason
Posted on: 15 Apr 2015 12:57
Project attached (Telerik lib files removed, due to size limiation)
Attached Files:
Jason
Posted on: 15 Apr 2015 12:48
Further to this issue.  I forgot that I was using a collection of DynamicObjects as the ItemSource if the grid view.  The issue does not seem to occur when the source is not a dynamic object,