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

RadGridView - GroupDescriptor resetted after regrouping

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 06 Sep 2011, 03:48 PM
Hello,

We have definition of RadGridView with a GroupDescriptor:

<TelerikControls:RadGridView Name="grid" SelectionMode="Multiple" IsReadOnly="True">
   <TelerikControls:RadGridView.GroupDescriptors>
      <telerik:GroupDescriptor Member="Id" SortDirection="Ascending">
         <telerik:GroupDescriptor.AggregateFunctions>
            <telerik:CountFunction Caption="Models: " />
            <telerik:SumFunction Caption="Reslts: " SourceField="ResultCount" />
         </telerik:GroupDescriptor.AggregateFunctions>
      </telerik:GroupDescriptor>
   </TelerikControls:RadGridView.GroupDescriptors>
</TelerikControls:RadGridView>

If the user un-groups the grid and then groups it by "Id" over again,
information in the group header gets lost. 
Is it a bug?

Thank you,
Victor

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Sep 2011, 10:56 AM
Hello Victor,

Tthat's expected. The user removes the original descriptor that had the aggregates and then adds a new one -- that does not have them.

You can try to add these aggregates on the fkly by attaching to the Grouping event of RadGridView. There you will have access to the GroupDescirptor that will be added.

Greetings,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Victor
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or