josauro@casasoft.net.br Posted April 27, 2023 Share Posted April 27, 2023 On 4/25/2023 at 1:17 AM, Sherzod said: Sorry, not yet. 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. 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]); } } }; } Quote Link to comment Share on other sites More sharing options...
josauro@casasoft.net.br Posted May 5, 2023 Share Posted May 5, 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. 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]); } } }; } Quote Link to comment Share on other sites More sharing options...
Tokay Posted October 28, 2023 Share Posted October 28, 2023 On 1/26/2023 at 12:11 PM, Sherzod said: Some progress: Please include this functionality in the main version. Also event sending with tree id and tree parent is needed Quote Link to comment Share on other sites More sharing options...
Tokay Posted November 18, 2023 Share Posted November 18, 2023 Up 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.