In our application we make use of MVC grid together with ajax custom binding. Our code supports sorting, paging and grouping and recently I have been trying to implement aggregating functionality, but this does not work. I managed to fill AggregateFunctionsProjection property of each AggregateFunctionsGroup in collection with data corresponding to requested aggregation operation. This is a dynamically created type which properties correspond to the FunctionName of AggregateFunction (taken from incoming AggregateDescriptor). The Aggregates
dictionary populates correctly, but still the request fails with exception:
"Invalid property or field - 'property_name' for type: AggregateFunctionsGroup"
where property_name is the column on which the aggregate is configured.
The same exception is thrown when the AggregateFunctionsProjection is not filled in the results. It looks like it does not matter if this is returned as the code still tries to calculate the aggregates again.
Can you give any directions on how to proceed with the issue? Is the aggregation functionality supported with custom binding enabled?
Regards
Piotr
10 Answers, 1 is accepted
Unfortunately, aggregates when using custom databinding is currently not supported.
All the best,Rosen
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
Are there any plans to address this issue? Alternatively can you suggest a work around - we really want to go with Telerik but this is the first issue that will force us to rethink.
I'm afraid that custom aggregates are not supported in this scenario. Is the custom binding required, maybe you could use the built-in functionality instead.
Regards,Rosen
the Telerik team
Yes, this is something we do definately need - our application does not have a single sql database to target, infact the data we want to display is collated from a number of datasources and will not be stored in a database - it would go against our architecture to do so. The custom bindings appeared to be the perfect solution to manage the presentation of our data.
It seems like a pretty big hole in the product that custom bindings do not support aggregates. Could you please confirm whether this is in your roadmap and if so when it will be delivered?
Thanks, Ben.
Most probably we will add support for aggregates and custom binding in a future version of the product. However, I'm afraid I cannot provide an estimate on when such feature be implemented.
All the best,Rosen
the Telerik team
Is this already scheduled on the roadmap of the product?
Thanks,
Although, we do not have immediate plans for add full support for custom aggregates when custom binding is enabled, we will do our best to provide a way to workaround this limitation with the Q3 2011 release. I have attached a small sample which uses an internal (unstable) build and demonstrates a vary basic implementation of such workaround when ajax binding is used.
Regards,Rosen
the Telerik team
It would be great if it becomes supported in the near future.
Thank you Telerik team.
Is this Aggregate function completed? Or do anybody know any new information of development?
Thank you!