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

How to handle errors

1 Answer 39 Views
Hierarchical Data Source
This is a migrated thread and some comments may be shown as answers.
Iwhp
Top achievements
Rank 1
Iwhp asked on 14 Aug 2012, 07:34 AM
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"
            }
        }
    })

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 15 Aug 2012, 12:12 PM
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!
Tags
Hierarchical Data Source
Asked by
Iwhp
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or