Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 ExtJS 的 gridviewdragdrop 插件,如何禁用将子节点拖出父节点?
在 'beforedrop' 事件上检查父级是否更改,因此取消编辑
beforedrop: function(node, data, overModel, dropPosition, dropFunction, eOpts ){ if(data.records[0].isLeaf()){// if(data.records[0].parentNode.data.id!=overModel.parentNode.data.id) return false; }