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

ObjectDataSource with async?

1 Answer 440 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
D
Top achievements
Rank 1
D asked on 14 Apr 2014, 03:26 PM
Hello,

currently evaluating Telerik Reports. I try to use Telerik Reports hosted by the Telerik Reporting REST Services in an existing Web API project bound to the HTML5 viewer.

It works basically, but in my ObjectDataSource that is bound to the report I have to load data async from an existing backend service. The method gets triggered but the result is never awaited. All I get is the following error:

An error has occurred while processing TextBox 'textBox1': The expression contains object 'Start' that is not defined in the current context.

How do I load data asynchronous to bind them to the report? Possible at all?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Apr 2014, 01:22 PM
Hello,

The data should be fully loaded once the report processing begins.

Our suggestion is to design the report and assign its Datasource property to the retrieved data. If needed, you can data bind the report at run-time after waiting all data records to be loaded. You can access the report's and inner data items' DataSource properties in a similar manner as in the Changing the connection string dynamically according to runtime data KB article.

Regards,
Stef
Telerik
 

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.

 
Tags
General Discussions
Asked by
D
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or