You are passing a string to the Sum aggregate function
. This will result in a concatenation of the strings, which were passed to the aggregate function. To avoid this, either pass the correct type of data to the aggregate function, or create your own custom aggregate function
which will handle the data as you desire.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.