开发者

ExtJS4: How to define DnD object method in DnD plugin

开发者 https://www.devze.com 2023-04-11 15:31 出处:网络
I am working on a page with Drag from Grid to Tr开发者_开发百科ee and using gridviewdragdrop and treeviewdragdrop plugin.

I am working on a page with Drag from Grid to Tr开发者_开发百科ee and using gridviewdragdrop and treeviewdragdrop plugin.

Everything works fine, but I don't really need to drag node, just need get the dragdata and dropdata, so I want to stop the drop action.

I found notifyDrop method in Ext.dd.DropTarget but don't know how to define that in plugin config. Anyone help? Thanks a lot!


you can use the beforedrop event, do your thing and at the end of the event just return false; in there, that way you will not complete the drop, that's what I do to a special case that I have.

0

精彩评论

暂无评论...
验证码 换一张
取 消