0

这是一个显示我的问题的小提琴。当您打开“文件夹A”和“文件夹B”时,将“B 项”拖出文件夹,将“A 项”拖入“B 文件夹”,就不能再正确拖动“B 项”了。

由于性能原因,我删除了折叠文件夹的子项。通常有超过 300 个项目,这使得树非常慢。

在我的真实程序中,我还在 dragEnd 回调函数的第一行收到一条错误消息:“TypeError:item is null”。这是功能:

function( item, dropItem, args, pos ){
    var item_data = tree_map[ item.id ];
    // here i do some stuff...
    // only dropItem exists in the arguments
    return false;
};

我怎样才能解决这个问题?

4

1 回答 1

0

在我更简约的测试中,我发现这是一个错误,我得到了 jQWidgets 支持的确认。

$("#delsel").click(function(){
    $("#jqxTree").jqxTree("removeItem", $("#jqxTree").jqxTree("getSelectedItem") );
});

当您删除项目时,它会失败。似乎是内部集合中的错误。

于 2014-07-09T07:27:47.760 回答