kendo treeview多节点拖放

时间:2014-04-03 07:32:29

标签: kendo-ui treeview kendo-treeview

我有一个带有复选框的Kendo Tree-view。我能够拖放单个项目(节点)。现在我想拖放多个项目(节点)。只有那些节点将被拖放,检查哪个复选框。请帮助我如何实现此功能.........

单拖放我遵循这个例子----

http://demos.telerik.com/kendo-ui/web/treeview/dragdrop.html enter image description here

用户可以拖拽和删除他在CHECKBOX中选择的许多节点。

根据MY RND

Below code section from kendo.web.js

     dragstart: function (e) {
        /*  Here Kendo UI StartDRAGGING*/

        console.log(e);
        var that = this,
            treeview = that.treeview,
            sourceNode = that.sourceNode = e.currentTarget.closest(NODE);

         // here how can i find how many node are selected 

        if (treeview.trigger(DRAGSTART, { sourceNode: sourceNode[0] })) {
            e.preventDefault();
        }

        that.dropHint = $("<div class='k-drop-hint' />")
            .css(VISIBILITY, "hidden")
            .appendTo(treeview.element);
    }

0 个答案:

没有答案