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

4 posts, 0 answers
  1. Eric
    Eric avatar
    14 posts
    Member since:
    Feb 2011

    Posted 14 Sep 2012 Link to this post

    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?
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 14 Sep 2012 Link to this post

    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!
  3. Eric
    Eric avatar
    14 posts
    Member since:
    Feb 2011

    Posted 14 Sep 2012 Link to this post

    Thanks for your reply.

    And where can I download the service pack ?
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 17 Sep 2012 Link to this post

    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!
Back to Top