How to handle errors

2 posts, 0 answers
  1. Iwhp
    Iwhp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 14 Aug 2012 Link to this post

    How can I handle errors, which for example occur on the server side.
    I have defined this HierarchicalDataSource:

        var childrenDataSource = new kendo.data.HierarchicalDataSource({
            transport: {
                read: {
                    url: function (options) {
                        return kendo.format("../api/hierarchytree/{0}", options.id);
                    }
                }
            },
            schema: {
                model: {
                    hasChildren: "hasChildren",
                    id: "id"
                }
            }
        })
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 15 Aug 2012 Link to this post

    Hello Harry,

    Use the dataSource error event.

    All the best,
    Alex Gyoshev
    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
Back to Top