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

[Solved] ISSUES WITH GRID GROUPING

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Silly
Top achievements
Rank 1
Silly asked on 08 Oct 2010, 01:04 AM
Hello,

I am having issues with Grid grouping (programatically). It worked fine in the previous version.
Here is the code snippet

  GroupDescriptor gdescriptor = e.DataControl
                                           .GroupDescriptors
                                           .FirstOrDefault(d => d.Member == groupField);

   SortDescriptor sdescriptor = e.DataControl
                                           .SortDescriptors
                                           .FirstOrDefault(d => d.Member == sortField);

Please note that the problem I have is only with GroupDescriptor. SortDescriptor has no errors.

Please help ASAP.

Thanks

Uma

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Oct 2010, 02:29 PM
Hello Silly,

You need to make a slight change in your code:

GroupDescriptor gdescriptor = e.DataControl
                 .GroupDescriptors.OfType<GroupDescriptor>()
                 .FirstOrDefault(d => d.Member == groupField);

This is due to some changes we have made for improving and extending the grouping functionality. 
Furthermore, from our next Q3 2010 Release, you will need to do the same for the SortDescriptor.
 

Regards,
Maya
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
Silly
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or