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

AggregateFunctions SUM not working for streamed data

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul Kleynhans
Top achievements
Rank 1
Paul Kleynhans asked on 20 Apr 2010, 06:33 AM

Hi guys,
    I am using Radgridview in one of my projects.
     Each row has got child objects that consist of a Tabcontrol and each tabitem has got either a Radgridview or a RadChart etc.
     Some columns have got sum or count aggregate functions in the footers.
     
    OK, so all worked very well, until my data started growing and I got the notorious "NotFound" exception.
     So after battling for a couple of days to get around this, I added the transferMode="Streamed" into my web.config (See below).

    <

 

basicHttpBinding>

 

        <

 

binding name="ServicesBinding" transferMode="Streamed" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">

 

            <

 

readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"  maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />

 

        </

 

binding>

 

    </

 

basicHttpBinding>

 

 

 

 The moment I did this, I get the following error when a Radgridview loads : 

 Visual Studio Just-In-Time Debugger

 An Unhandled exception ('Unhandled Error in Silverlight Application
 Code: 4004
 Category: ManagedRuntimeError
 Message: System.InvalidOperationException: No method 'Sum' on type
 'System.Linq.Enumerable' is compatible with the supplied arguments.

 As far as I can see, this is only on the Sum function :

 

    <

 

grid:GridViewDataColumn.AggregateFunctions>

 

 

 

        <telerikData:SumFunction Caption="Order Total: "/>

 

 

 

    </grid:GridViewDataColumn.AggregateFunctions>

 

 

 

The moment I remove this everything works again, I can still have my count functions, but no sum functions are working.

Just thought you might want to have a look at this.

Kind Regards
Paul Kleynhans

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 22 Apr 2010, 07:30 AM
Hello Paul,

You need to define SourceField for the Sum function.

Regards,
Vlad
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.
Tags
GridView
Asked by
Paul Kleynhans
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or