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

Handling ajax issues

1 Answer 137 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
christopher willis
Top achievements
Rank 1
christopher willis asked on 03 Dec 2011, 03:55 PM
To use Kendo UI datasource, we would pull JSON data from asp.net pagemethods and webmethods.  We have a JavaScript function that calls the server to get this data, but the function also handles issues such as:
  • removing the aspx returned 'd' variable in the JSON
  • converting microsoft's 'date' variables into date vars
  • handling forms authentication timeouts (we pop a login dialog when this happens, then retry the call)
  • handling server timeouts, and retrying the call automatically x number of times (this happens a lot)
Are there events or configuration features in the data source object to allow us to continue to use our code to handle these issues, and still take advantage of all the cool CRUD features in the data source object?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Dec 2011, 10:15 AM
Hello Christopher Willis,

 It is possible to create a Kendo DataSource which is using your function for retrieving the data. Here is an example showing how to use $.ajax in order to populate a datasource:


Kind regards,
Atanas Korchev
the Telerik team
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
christopher willis
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or