josauro@casasoft.net.br Posted August 17, 2023 Share Posted August 17, 2023 Hi I would like to implement a drag and drop uniTreeNode in a uniTreeView but all topics are incomplet. How could I do this. Thanks. This is your last post Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 Hello, 13 minutes ago, josauro@casasoft.net.br said: I would like to implement a drag and drop uniTreeNode in a uniTreeView but all topics are incomplet. Yes, there are some solutions on the forum. What are your implementation requirements? Quote Link to comment Share on other sites More sharing options...
josauro@casasoft.net.br Posted August 17, 2023 Author Share Posted August 17, 2023 Yes I founded but all is incomplet I need to drag a UniTreeNode and all sub Nodes to another position in a uniTreeView Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 9 minutes ago, josauro@casasoft.net.br said: I need to drag a UniTreeNode and all sub Nodes to another position in a uniTreeView This functionality, I mean drag and drop to subnode is not implemented in sencha itself as far as I know. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 17, 2023 Share Posted August 17, 2023 I started developing this functionality, but there were some nuances. I'll try to remember and analyze again. But it will take time and resources... Quote Link to comment Share on other sites More sharing options...
josauro@casasoft.net.br Posted August 17, 2023 Author Share Posted August 17, 2023 Thanks for your feedback. I think it´s good option, for many topics about this. Thanks. I will wait; Quote Link to comment Share on other sites More sharing options...
josauro@casasoft.net.br Posted August 17, 2023 Author Share Posted August 17, 2023 Hi I put this code in a UnitreeView, de drag an drop work fine, but, how could I know in delphi where de parent node they are droped ? I need to update de BD with new targed node parent. Look the video attached. function beforeInit(sender, config) { config.viewConfig = { plugins: { ptype: 'treeviewdragdrop', ddGroup: 'tree2panel', dragText : 'Movendo....', enableDrag : true, enableDrop : true, appendOnly: false }, listeners: { beforedrop: function(node, data, overModel, dropPos, opts) { }, drop: function(node, data, overModel, dropPos, opts) { ajaxRequest(sender, 'dropped', ['data='+data.records[0].data, 'id='+data.records[0].data.id, 'opts='+opts, 'text='+data.records[0].data.text]); } } }; } Gravar_2023_08_17_18_38_21_171.mp4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.