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

requestEnd - e.response does not return the raw remote service response.

4 Answers 202 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
andrew
Top achievements
Rank 1
andrew asked on 24 Apr 2013, 08:52 AM
Hi, when I use e.response the object contains a whole lot of information that was not returned from the server.
How do I access just the raw remote service response?
Regards
Andrew

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 24 Apr 2013, 12:08 PM
Hello andrew,

I'm afraid that I'm unable to observe such behavior locally. The content of the response property of requestEnd event argument is indeed the data returned from the server. Therefore, could you please provide a small sample in which the described issue can be observed. 

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kenny
Top achievements
Rank 1
answered on 25 Apr 2013, 06:19 PM
Are you looking at e.response or e. sender? 

I've also been looking at the requestEnd event a lot in the past day or so and I can confirm that e.response does indeed contain just the raw server data. e.sender however also has the Kendo extended version of the server response. 
0
Rosen
Telerik team
answered on 26 Apr 2013, 07:39 AM
Hello Kenny,

This indeed is expected as the sender of the event is the DataSource itself, which does have data - both processed and raw. However, at the point in which the event is raised it will be stale as the new data is not processed.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Accepted
andrew
Top achievements
Rank 1
answered on 26 Apr 2013, 07:52 AM
I was able to find my returned data in
e.response.documentElement
and the text part in
e.response.documentElement.textContent
Thanks for looking into this issue.
Regards
Andrew
Tags
Data Source
Asked by
andrew
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Kenny
Top achievements
Rank 1
andrew
Top achievements
Rank 1
Share this question
or