David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio
asked on 06 Sep 2011, 06:57 PM
Internal build 823 seems to have a bug.
Used to be if i filtered a column a "count" aggregate function would recalc.
Now it doesn't even if i call ".CalculateAggregates()"
Please see attached snapshots.
The page I am using to demonstrate has not been changed for ages.
Blue Header screens are from an older build most likely the standard 712.
Red Header is using the 823 build.
As you can see it did calc and now it doesn't.
please advise
thanks
dco
Used to be if i filtered a column a "count" aggregate function would recalc.
Now it doesn't even if i call ".CalculateAggregates()"
Please see attached snapshots.
The page I am using to demonstrate has not been changed for ages.
Blue Header screens are from an older build most likely the standard 712.
Red Header is using the 823 build.
As you can see it did calc and now it doesn't.
please advise
thanks
dco
4 Answers, 1 is accepted
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 06 Sep 2011, 07:35 PM
As a followup.
For sake of my sanity I made an demo project and tested with 712 and 823 and got the same results.
712 recalcs
823 does not recalc
Please review pasted code.
thanks
dco
For sake of my sanity I made an demo project and tested with 712 and 823 and got the same results.
712 recalcs
823 does not recalc
Please review pasted code.
thanks
dco
Imports
System.Collections.Generic
Imports
System.Collections.ObjectModel
Imports
System.ComponentModel
Imports
System.ComponentModel.DataAnnotations
Imports
System.Globalization
Imports
System.IO
Imports
System.Linq
Imports
System.Linq.Expressions
Imports
System.Runtime.CompilerServices
Imports
System.ServiceModel.DomainServices.Client
Imports
System.Windows
Imports
System.Windows.Clipboard
Imports
System.Windows.Controls
Imports
System.Windows.Data
Imports
Telerik.Windows.Controls
Imports
Telerik.Windows.Controls.DragDrop
Imports
Telerik.Windows.Controls.GridView
Imports
Telerik.Windows.Data
Partial
Public
Class
MainPage
Inherits
UserControl
Public
Sub
New
()
InitializeComponent()
End
Sub
Private
Sub
MainPage_Loaded(sender
As
Object
, e
As
System.Windows.RoutedEventArgs)
Handles
Me
.Loaded
Dim
colExample
As
New
ObservableCollection(Of classExample)
colExample.Add(
New
classExample
With
{.Name =
"FirstName"
, .Value = 1})
colExample.Add(
New
classExample
With
{.Name =
"SecondName"
, .Value = 2})
colExample.Add(
New
classExample
With
{.Name =
"ThirdName"
, .Value = 3})
gridExample.ItemsSource = colExample
End
Sub
End
Class
Public
Class
classExample
<Display(Name:=
"Name"
, Description:=
"Name"
)> _
Public
Property
Name()
As
String
Get
Return
_Name
End
Get
Set
(
ByVal
value
As
String
)
_Name = value
End
Set
End
Property
Protected
_Name
As
String
<Display(Name:=
"Value"
, Description:=
"Value"
)> _
Public
Property
Value()
As
Integer
Get
Return
_Value
End
Get
Set
(
ByVal
value
As
Integer
)
_Value = value
End
Set
End
Property
Protected
_Value
As
Integer
End
Class
<
UserControl
x:Class
=
"agTesty2.MainPage"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadGridView
x:Name
=
"gridExample"
IsReadOnly
=
"True"
ShowColumnFooters
=
"True"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Name,Mode=OneWay}"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:CountFunction
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Value"
DataMemberBinding
=
"{Binding Value,Mode=OneWay}"
FooterTextAlignment
=
"Right"
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:SumFunction
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
0
Hi David Ocasio,
Ross
the Telerik team
It is quite possible that you have located a bug. Could you please send us this small dummy project and we will debug it immediately to see what is going on. We need a runnable sample project that exhibits the erroneous behavior -- this will be the fastest way to identify the culprit.
Regards,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 >>
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 Sep 2011, 01:22 PM
Ross,
Since the forum does not allow project or zip files
i have opened a ticket (461574)
and inclueded the project and snapshots there
I will post any results here for posterity.
thanks
dco
Since the forum does not allow project or zip files
i have opened a ticket (461574)
and inclueded the project and snapshots there
I will post any results here for posterity.
thanks
dco
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 Sep 2011, 01:57 PM
Confirmed as bug,
VVVVVVV
We confirm the issue with the column aggregates. We currently work on resolving it and we will do our best to provide a fix for it in one of the next internal builds.
^^^^^^^^^^
I will post the resolution when it comes for the forums
thanks
dco
VVVVVVV
We confirm the issue with the column aggregates. We currently work on resolving it and we will do our best to provide a fix for it in one of the next internal builds.
^^^^^^^^^^
I will post the resolution when it comes for the forums
thanks
dco