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

Unable to get value of the property 'length': object is null or undefined

3 Answers 290 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 14 Sep 2012, 08:20 AM
Hi,

I have a treeview and bind datasource form web api.
When I tried to drag and drop node and an error occurred, "Unable to get value of the property 'length': object is null or undefined " in IE9.


There is my code

<script>
    $(function () {
        var serviceRoot = "http://localhost:12181";
        var homogeneous = new kendo.data.HierarchicalDataSource({
            transport: {
                read: {
                    url: serviceRoot + "/api/Group",
                    dataType: "json"
                }
            },
            schema: {
                model: {
                    id: "Id",
                    hasChildren: "hasChildren"
                }
            }
        });
        $("#treeview").kendoTreeView({
            dragAndDrop: true,
            dataSource: homogeneous,
            dataTextField: "Name"
        });
    });
</script>
<div id="treeview"></div>


Any advice?

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 14 Sep 2012, 11:32 AM
Hello Eric,

Support for drag&drop operations within a remote datasource has been introduced officially in the service pack which was released today. It is not supported in the 2012.2.710 version.

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!
0
Eric
Top achievements
Rank 1
answered on 15 Sep 2012, 12:48 AM
Thanks for your reply.

And where can I download the service pack ?
0
Alex Gyoshev
Telerik team
answered on 17 Sep 2012, 08:57 AM
Hello Eric,

The service pack is available for customers with an active subscription.

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
TreeView
Asked by
Eric
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Eric
Top achievements
Rank 1
Share this question
or