6 Answers, 1 is accepted
There is no problem to refer aggregates in code behind. There are various ways to refer an aggregate function in code-behind for a particular column:
CountFunction f = new CountFunction();( ( GridViewDataColumn )this.radGridView.Columns[ "ID" ] ).AggregateFunctions.Add( f );You may do the same for grouping aggregates. Please refer to our online docs for further info.
Greetings,
Vanya Pavlova
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
SumFunction s = new SumFunction();
s.Caption =
"Sum: ";
((
GridViewDataColumn)this.rgvResults.Columns["Weight"]).AggregateFunctions.Add(s);
I get the attached error. I am using Silverlight 3, Visual Studio 2008 on a Windows 7 64bit.
Thank you
Generally you may perform sum operation only to numeric types. What is the data type of the property to which this column is bound to? Regarding the version you are currently using I would want to inform you that Telerik support for Silverlight 3 has been obsoleted. Would it be convenient to you to upgrade to the latest version of RadControls/Silverlight?
Vanya Pavlova
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
I continued to try different things, even by switching all the fields to numeric it still throws the same error.
Thanks
Thanks,
Jackie