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

[Solved] Custom AggregateFunctions accessing a WebService?

3 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jens
Top achievements
Rank 1
Jens asked on 12 Oct 2009, 03:00 PM
Hello,

is is possible to build a custom AggregateFunction, which accesses a WebService asynchronously to retrieve the aggregated data?

Thanks,
Jens

3 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 14 Oct 2009, 06:54 AM
Hi Jens,

This can be implemented. You can use our custom aggregate sample as baseline. You can look how the Statistics.cs class is implemented and do your web services call in a similar fashion.

Regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jens
Top achievements
Rank 1
answered on 14 Oct 2009, 07:26 AM
Hi Stefan,

thank you for your reply. I already saw this sample, but will it work using an asynchronous approach?

Thanks,
Jens
0
Stefan Dobrev
Telerik team
answered on 19 Oct 2009, 09:42 AM
Hi Jens,

You should make the web services call synchronous and just return the result. You can also play with lazy evaluation of LINQ expressions and override CreateAggregateExpression method of AggregateFunction.

Best wishes,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Jens
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Jens
Top achievements
Rank 1
Share this question
or