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

Notifying the data source that the request succeeded

1 Answer 51 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 25 Jun 2015, 04:09 PM

Hi,

 

Looking over the DataSource API, setting the transport.update method to a function requires an options.success(result) callback.

I am unable to find any documentation on what "result" should be, i.e. what properties that object should contain and what they all mean.

This is also the case with other callbacks and objects in the documentation. Am I just silly in missing something obvious? Where do I find documentation on these internal objects' structures?

 

Thanks,

Denis.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 29 Jun 2015, 07:59 AM

Hello Denis,

Generally speaking there is no exact format in which the result should be. The actual expected format is described by the developer via the schema's data, total, groups, aggregates options. By default (if no schema data is specified) the response should be an array as this is what the DataSource can be bound to.

Regards,
Rosen
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
Denis
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or