[英]ExtJs - Tree Drag Drop - Set the newly dragged node to be the selected one
Using ExtJS 4, a tree panel and a drag drop.. 使用ExtJS 4,一个树面板和一个拖放。
I'm trying set the newly dragged node to be selected... something like: 我正在尝试设置新拖动的节点为选中状态……
viewConfig: {
listeners : {
drop: function (node, data, view, ddel, item) {
this.getSelectionModel().select(data.record);
}
}
}
This obviously doesn't work, can anybody give me some pointers? 这显然行不通,有人可以给我一些指示吗?
Thanks 谢谢
Sam 山姆
您是否尝试听过TreePanel上的add
事件?
您可以在控制器查询中使用treepanel > treeview
添加drop和beforedrop监听器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.