6 Answers, 1 is accepted
0
Hello Xaria D,
In this case your groups, if predefined in xaml or in the code-behind, will appear in the group row but no group will be shown at the top. However, this will not allow you the group by the UI.
You can find more information about controlling the appearance in our online documentation.
All the best,
Maya
the Telerik team
You can disable the appearance of the group panel by the property of the grid ShowGroupPanel:
<
telerik:RadGridView
Name
=
"playersGrid"
ItemsSource
=
"{Binding Players}"
ShowGroupPanel
=
"False"
AutoGenerateColumns
=
"False"
>
In this case your groups, if predefined in xaml or in the code-behind, will appear in the group row but no group will be shown at the top. However, this will not allow you the group by the UI.
You can find more information about controlling the appearance in our online documentation.
All the best,
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
0
Xaria D
Top achievements
Rank 1
answered on 29 Jun 2010, 02:38 PM
I do not wish to group the data together..
I just need the aggregate count
0
Ваня
Top achievements
Rank 1
answered on 29 Jun 2010, 05:02 PM
Hello
Check out online demos-I think that there was an example with aggregate functions:
I have found it - Something like this:This is from the example from demos:
<telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Customers}" CanUserFreezeColumns="False" AutoExpandGroups="True" AutoGenerateColumns="False">
<telerik:RadGridView.GroupDescriptors>
<telerik:GroupDescriptor Member="Country">
<telerik:GroupDescriptor.AggregateFunctions>
<telerik:CountFunction Caption="Total customers:" />
</telerik:GroupDescriptor.AggregateFunctions>
</telerik:GroupDescriptor>
</telerik:RadGridView.GroupDescriptors>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="CustomerID" DataMemberBinding="{Binding CustomerID}" />
<telerik:GridViewDataColumn Header="CompanyName" DataMemberBinding="{Binding CompanyName}" />
<telerik:GridViewDataColumn Header="ContactName" DataMemberBinding="{Binding ContactName}" />
<telerik:GridViewDataColumn Header="ContactTitle" DataMemberBinding="{Binding ContactTitle}" />
<telerik:GridViewDataColumn Header="Country" DataMemberBinding="{Binding Country}" />
<telerik:GridViewDataColumn Header="City" DataMemberBinding="{Binding City}" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Examples:GridViewExample>
The full example is in DataGridView-Grouping->Aggregates...
Hope this helps!
0
Xaria D
Top achievements
Rank 1
answered on 30 Jun 2010, 02:55 AM
The thing is if use Group descriptor then it will group the data together and display it as group.
I do not wish to change the display of data, i.e. I do not wish to display group of data.
I only want the aggregate.
I do not wish to change the display of data, i.e. I do not wish to display group of data.
I only want the aggregate.
0
Accepted
Hello Xaria D,
Maya
the Telerik team
I am sending you a sample project which implements a solution for taking the result of the Aggregate Functions. In this case the grouping is done on clicking on the button and the result is shown in the TextBlock next to it.
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
0
Xaria D
Top achievements
Rank 1
answered on 01 Jul 2010, 04:10 AM
It works like a charm.
Thank you so much.
Thank you so much.