herculanojs Posted May 31, 2017 Share Posted May 31, 2017 Hi Would anyone have an example of how to do Drag Drop in a TUniTreeview It would be possible ? Tanks Link to comment Share on other sites More sharing options...
Sherzod Posted June 1, 2017 Share Posted June 1, 2017 Hi, Yes it is possible, but you should think about synchronization with the server function beforeInit(sender, config) { config.viewConfig = { plugins: { ptype: 'treeviewdragdrop' } }; } Best regards, Link to comment Share on other sites More sharing options...
herculanojs Posted June 1, 2017 Author Share Posted June 1, 2017 thank you Link to comment Share on other sites More sharing options...
herculanojs Posted June 6, 2017 Author Share Posted June 6, 2017 Hi, Yes it is possible, but you should think about synchronization with the server function beforeInit(sender, config) { config.viewConfig = { plugins: { ptype: 'treeviewdragdrop' } }; } Best regards, How could you make it so that in ondrag drop it could be added as no child in another? Link to comment Share on other sites More sharing options...
herculanojs Posted June 8, 2017 Author Share Posted June 8, 2017 How can I capture the Dragdrop event? function beforeInit(sender, config) { config.viewConfig = { plugins: { ptype: 'treeviewdragdrop' } };} O código acima apenas permite o drag de uma posição superior/inferior. Necessito mover nós entre níveis. Colocar um nó dentre de outro. Como posso capturar o nó que esta sendo movido, e sobre qual nó esta sendo sobreposto. The above code only allows drag from an upper / lower position. I need to move knots between levels. Put one knot from another. How can I capture the node being moved, and which node is being overlapped. in vlc procedure TfrmGrupo.trvMenuDragDrop(Sender, Source: TObject; X, Y: Integer); var AnItem: TTreeNode; AttachMode: TNodeAttachMode; HT: THitTests; begin if trvMenu.Selected = nil then Exit; HT := trvMenu.GetHitTestInfoAt(X, Y) ; AnItem := trvMenu.GetNodeAt(X, Y) ; if (HT - [htOnItem, htOnIcon, htNowhere, htOnIndent]<> HT) then begin if (htOnItem in HT) or (htOnIcon in HT) then AttachMode := naAddChild else if htNowhere in HT then AttachMode := naAdd else if htOnIndent in HT then AttachMode := naInsert; trvMenu.Selected.MoveTo(AnItem, AttachMode); end; end; Link to comment Share on other sites More sharing options...
herculanojs Posted June 9, 2017 Author Share Posted June 9, 2017 I need the dragdrop features contained in these examples How can I achieve this with Unitreevew ? http://demos.shieldui.com/web/treeview/drag-and-drop http://demos.telerik.com/kendo-ui/treeview/dragdrop Link to comment Share on other sites More sharing options...
gerhardhziegler Posted July 19, 2017 Share Posted July 19, 2017 looks like, we have the same problems... Link to comment Share on other sites More sharing options...
herculanojs Posted October 27, 2017 Author Share Posted October 27, 2017 Does anyone have a solution for this situation? Move an entire node with your children to another point, or to another node Link to comment Share on other sites More sharing options...
herculanojs Posted December 13, 2017 Author Share Posted December 13, 2017 We still have no solution to the problem. Does anyone have a solution? Link to comment Share on other sites More sharing options...
herculanojs Posted December 19, 2017 Author Share Posted December 19, 2017 Hi, Yes it is possible, but you should think about synchronization with the server function beforeInit(sender, config) { config.viewConfig = { plugins: { ptype: 'treeviewdragdrop' } }; } Best regards, I need to drag dragdrop between us, putting one inside of others, with all his children if they have. How can I do this? I did not find anything in the forum Link to comment Share on other sites More sharing options...
herculanojs Posted January 10, 2018 Author Share Posted January 10, 2018 Please, would there be any solution to the case Link to comment Share on other sites More sharing options...
Sherzod Posted January 10, 2018 Share Posted January 10, 2018 Hi, I need to drag dragdrop between us, putting one inside of others, with all his children if they have. How can I do this? I did not find anything in the forum Need to analyze Link to comment Share on other sites More sharing options...
herculanojs Posted January 10, 2018 Author Share Posted January 10, 2018 OK, we have to deal with accounting plans, and it's tricky to deal with it without this option, as there are multiple levels of accounts, which can be changed. Link to comment Share on other sites More sharing options...
M477H13U Posted January 9, 2019 Share Posted January 9, 2019 Hello Sherzod ! We also are in the need of such a functionnality! Any workaround ? (: Cheers, Link to comment Share on other sites More sharing options...
Tokay Posted November 18, 2022 Share Posted November 18, 2022 Up. Does actual versions have any solution for this? Link to comment Share on other sites More sharing options...
Tokay Posted November 26, 2022 Share Posted November 26, 2022 Up Link to comment Share on other sites More sharing options...
VolkovVitalD Posted January 12, 2023 Share Posted January 12, 2023 On 1/10/2018 at 4:45 PM, Sherzod said: Hi, Need to analyze I also really need such functionality Link to comment Share on other sites More sharing options...
Sherzod Posted January 12, 2023 Share Posted January 12, 2023 On 11/26/2022 at 8:26 PM, Tokay said: Up 1 hour ago, VolkovVitalD said: I also really need such functionality Hello, The main logic of these things is done on the server side and stored in the database. Do you have server side logic using DB? Link to comment Share on other sites More sharing options...
Tokay Posted January 13, 2023 Share Posted January 13, 2023 18 hours ago, Sherzod said: The main logic of these things is done on the server side and stored in the database. Do you have server side logic using DB? There is no problem to make the base side: just change one, node root, id. But graphical interface of drag-drop is ugly as in UniDbTreeView as in UniTreeView. And it's important for us. Link to comment Share on other sites More sharing options...
VolkovVitalD Posted January 17, 2023 Share Posted January 17, 2023 On 1/12/2023 at 9:34 PM, Sherzod said: Hello, The main logic of these things is done on the server side and stored in the database. Do you have server side logic using DB? I use UniTreeView, and the tree is stored in the database. I understand that I will need to implement the logic of moving nodes in storage on my own. Link to comment Share on other sites More sharing options...
Tokay Posted January 18, 2023 Share Posted January 18, 2023 Issues: could not possible drop node to the 'non-tree' node as sub-node after drop any events does not fired tree droping shows different icons on the starting of program and later bandicam 2023-01-18 23-22-48-978.mp4 Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2023 Share Posted January 18, 2023 15 minutes ago, Tokay said: could not possible drop node to the 'non-tree' node as sub-node Yes, I know... Link to comment Share on other sites More sharing options...
Sherzod Posted January 26, 2023 Share Posted January 26, 2023 Some progress: 2 Link to comment Share on other sites More sharing options...
josauro@casasoft.net.br Posted April 24, 2023 Share Posted April 24, 2023 On 1/26/2023 at 6:11 AM, Sherzod said: Some progress: Have source of this functions ? Link to comment Share on other sites More sharing options...
Sherzod Posted April 25, 2023 Share Posted April 25, 2023 4 hours ago, josauro@casasoft.net.br said: Have source of this functions ? Sorry, not yet. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now