Why does the schema.errors field not work?

5 posts, 0 answers
  1. Ryan
    Ryan avatar
    12 posts
    Member since:
    Oct 2012

    Posted 01 Mar 2013 Link to this post

    According to the documentation at http://docs.kendoui.com/api/framework/datasource, there is an errors field you can specify in the schema of a datasource, and, if the field is present in the response, the error handler will be called.  This does not work.  In the below example, i have a books.xml document as follows:

    <books>
    <error>something</error>
    <book>
    <title>booktitle</title>
    </book>
    <books>

    And the code that uses it is below.  It shows the book in the grid, but i also expect to get an alert.  no alert happens, so something must be broken with this?

    $(document).ready(function() {
       $("#grid").kendoGrid({
          dataSource:  new kendo.data.DataSource({
    error: function(e) {
       alert(1);
    },
    transport: {
       read: "books.xml"
    },
    schema: {
       type: "xml",
       errors: "/books/error",
       data: "/books/book",
       model: {
          fields: {
     title: "title/text()"
          }
       }
    }
          })
       });
    });
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 04 Mar 2013 Link to this post

    Hello Ryan,

    We were able to observe the issue you have described and to address it. The fix will be included in the next internal build. Meanwhile, I have updated your telerik points.

    Greetings,
    Rosen
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Craig
    Craig avatar
    12 posts
    Member since:
    Feb 2013

    Posted 11 Mar 2013 Link to this post

    Is there a workaround to get this working in the meantime?
    Or, is there a build available with this fix yet?
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 12 Mar 2013 Link to this post

    Hello Craig,

    The fix will be available in the official Q1 2013 release of KendoUI, which is scheduled for the second half of March.

    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!
  6. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 26 Feb 2015 in reply to Rosen Link to this post

    Hi Rosen,
    I am using latest build of Kendo and still experiencing the same problem mentioned here in this post! The error event is not firing. Here is a more detailed post: 
    http://www.telerik.com/forums/datasource-error-event-is-not-firing

    Thanks
Back to Top
Kendo UI is VS 2017 Ready