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

Count of SelectedItems in a group

2 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Eaton
Top achievements
Rank 1
Michael Eaton asked on 15 Feb 2012, 03:46 PM
I have a GridView that's grouped. When the groups are collapsed, I want to have the number of items selected in each group show up in the "collapsed header" for that group. I've poked around, but it doesn't look like it's possible.

Any thoughts?

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 15 Feb 2012, 03:55 PM
Hi Michael,

Count and other aggregations may be performed only over data . The selection is state of the UI rather than data. In order to achieve such behavior you will need to reflect the selection state in your business object. For example you may add an IsSelected property to your business object which bound to the selection state of the row representing that object.
Then you can use regular aggregate function to show the selected items count per group even when it is collapsed.

Regards,
Pavel Pavlov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Michael Eaton
Top achievements
Rank 1
answered on 15 Feb 2012, 04:31 PM
Thanks. I'll see if I can work out the details to do this.
Tags
GridView
Asked by
Michael Eaton
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Michael Eaton
Top achievements
Rank 1
Share this question
or