I have in my .xaml the following code:
.
.
.
.
the count function works but the sum function doesn't, it says in spanish something like "There isn't a 'Sum' method in the 'System.Linq.Enumerable' type, compatible with the specified arguments."
The ItemSource that i'm binding is an Arraylist that contains objects of an object type that i created.
and the other problem is that the columns that have the aggregate functions, duplicate.
<telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}">
<telerik:GridViewColumn.AggregateFunctions>
<telerik:CountFunction Caption="# Registros encontrados: " />
</telerik:GridViewColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}">
<telerik:GridViewColumn.AggregateFunctions>
<telerik:SumFunction Caption="Total: " />
</telerik:GridViewColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
<telerik:RadGridView x:Name="radGridView1" IsReadOnly="True" Grid.Column="1" Grid.Row="1" Margin="0,0,0,5" Grid.RowSpan="3"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}"> |
<telerik:GridViewColumn.AggregateFunctions> |
<telerik:CountFunction Caption="# Registros encontrados: " /> |
</telerik:GridViewColumn.AggregateFunctions> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}"> |
<telerik:GridViewColumn.AggregateFunctions> |
<telerik:SumFunction Caption="Total: " /> |
</telerik:GridViewColumn.AggregateFunctions> |
</telerik:GridViewDataColumn> |
.
.
.
.
the count function works but the sum function doesn't, it says in spanish something like "There isn't a 'Sum' method in the 'System.Linq.Enumerable' type, compatible with the specified arguments."
The ItemSource that i'm binding is an Arraylist that contains objects of an object type that i created.
ArrayList listaMesas = Oper_SoftCount.consultarFecha(dt); |
this.radGridView1.ItemsSource = listaMesas; |
and the other problem is that the columns that have the aggregate functions, duplicate.
<telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}">
<telerik:GridViewColumn.AggregateFunctions>
<telerik:CountFunction Caption="# Registros encontrados: " />
</telerik:GridViewColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}">
<telerik:GridViewColumn.AggregateFunctions>
<telerik:SumFunction Caption="Total: " />
</telerik:GridViewColumn.AggregateFunctions>
</telerik:GridViewDataColumn>