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

[Solved] Grouping in Silverlight RadGridView

4 Answers 171 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.
Ramyashree
Top achievements
Rank 1
Ramyashree asked on 18 Jan 2011, 05:40 AM
With the default grouping property of the gridview , I can group the records of the grid based on columns, However I also need to display the number of records beside each of the groups.. Is it possible..?

4 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 18 Jan 2011, 07:58 AM
Hello Ramyashree,

You may use the CountFunction as described in our online documentation. Let me know if you need any further assistance.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Ramyashree
Top achievements
Rank 1
answered on 18 Jan 2011, 09:58 AM
Thank you so much.. It helped me a lot...  
Is there any way to align the  each of group headers and count such that it appears like table... 
Also is there any way to do the same with the default grouping property of the grid i.e., by dragging the and dropping the column headers..?

Regards,
Ramya
0
Accepted
Maya
Telerik team
answered on 18 Jan 2011, 10:48 AM
Hello Ramyashree,

You may define a CountFunction to a particular column and to the GroupDescriptor itself. Another approach would be to define a ColumnGroupDescriptor in the code-behind and still have the CountFunction defined for a column. I am sending you a sample project illustrating the proposed solutions.
As far as the aligning of the aggregates is concerned, for the time being there is no out-of-the-box solution. However, it has been included in our to-do list and you may vote for it here. What you may do is to predefine some of the grid's templates as demonstrated in the sample project in this forum thread.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Ramyashree
Top achievements
Rank 1
answered on 18 Jan 2011, 11:17 AM
Oh thank u so much..

 It's simpler than i thought it to be... This is what i wanted...

Regards,
 Ramya
Tags
GridView
Asked by
Ramyashree
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ramyashree
Top achievements
Rank 1
Share this question
or