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

Is Data access to the server side synchronous or asynchronous?

1 Answer 141 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Myles
Top achievements
Rank 1
Myles asked on 26 Aug 2013, 04:03 AM
Or can it be configured to be either? (We are just trialing the Kendo package at the moment)

This applies to both fetching data and posting back changes.

Thanks
Myles.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 Aug 2013, 07:29 AM
Hello Myles,

All DataSource operations are asynchronous. There are case when then can complete right away (if using local data), but you shouldn't relay on this. Your logic must treat all DataSource operation as async.

For the purpose of handling different DataSource states you can handle appropriate events. For example:
 - change event notifies that new data is fetched
 - error event notifies that there are some errors while fetching the data, etc.

Regards,
Nikolay Rusev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Myles
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or