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

XML: How do I induce DataSource read to error when custom response header encountered ?

1 Answer 84 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 11 Jun 2012, 02:01 AM
I have a XML data source that I would like to issue an error event when the response header has a certain key and value.

The headers are:

Key               Value
Response          HTTP/1.1 200 OK
Server            Apache-Coyote/1.1
X-Powered-By      Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0
X-UA-Compatible   IE=EmulateIE7
X-ABC-XYZ-ERROR   -34
Cache-Control     no-cache, no-store
Content-Type      text/html;charset=UTF-8
Transfer-Encoding chunked
Date              Sun, 10 Jun 2012 22:34:54 GMT

When X-ABC-XYZ-ERROR is < 0 I want error evented.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 11 Jun 2012, 08:29 AM
Hi Richard,

I am afraid the described functionality is not supported. By design, the Kendo UI dataSource entirely relies on $.ajax and its error and success events.

Greetings,

Iliana Nikolova
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
Richard
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or