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

Aggregates with Custom Binding

10 Answers 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Piotr
Top achievements
Rank 1
Piotr asked on 01 Aug 2011, 09:17 AM
Hi, 
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

Sort by
0
Rosen
Telerik team
answered on 01 Aug 2011, 12:15 PM
Hi Piotr,

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

0
ben
Top achievements
Rank 1
answered on 12 Sep 2011, 03:51 PM
Hi, this is a real problem - it means we can't provide sub totals on a grouped result set.... which makes the grouping functionality pretty much redundant for us, infact for any non trivial financial application. So one of our key evaluation features for the telerik grid does not work! Our clients want subtotals and if we can't provide them with Telerik we are going to have to find a plan B.

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.

0
Rosen
Telerik team
answered on 14 Sep 2011, 09:26 AM
Hello Ben,

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
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
0
ben
Top achievements
Rank 1
answered on 14 Sep 2011, 09:49 AM
Hi Rosen,

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.
0
Rosen
Telerik team
answered on 16 Sep 2011, 08:05 AM
Hello 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
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
0
Cristian
Top achievements
Rank 1
answered on 27 Oct 2011, 12:22 AM
We're very interested in this functionality.  We're building enterprise level applications that need - in some scenarios - custom binding.  The aggregates are considered a "must".

Is this already scheduled on the roadmap of the product?

Thanks,
0
Rosen
Telerik team
answered on 28 Oct 2011, 03:10 PM
Hello Cristian,

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
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Luis
Top achievements
Rank 1
answered on 01 Feb 2012, 11:51 PM
I'm developing a CustomBinding helper, and I have implemented almost all the major features, I believe it only lacks aggregations.

It would be great if it becomes supported in the near future.

Thank you Telerik team. 
0
martonx
Top achievements
Rank 1
answered on 11 Apr 2012, 03:47 PM
Hello,

Is this Aggregate function completed? Or do anybody know any new information of development?

Thank you!
0
Luis
Top achievements
Rank 1
answered on 11 Apr 2012, 03:52 PM
Yes, you can check this and many other features in the project repository.
Tags
Grid
Asked by
Piotr
Top achievements
Rank 1
Answers by
Rosen
Telerik team
ben
Top achievements
Rank 1
Cristian
Top achievements
Rank 1
Luis
Top achievements
Rank 1
martonx
Top achievements
Rank 1
Share this question
or