Issues using treetable on drag and drop
OpenUI5 version: 1.8..4.22
Browser/version (+device/version): Chrome
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
- Open a page using treetable with branch and leaves, it uses drag and drop feature, in my case it only one level of branch, branch cannot be move to a leaf, can only be move to arrange the branches using dnd, a leaf can move to a different branch
- Assuming that you have 4 branches, each have atleast a leaf
- Expand only the first branch then move the first branch using dnd to become the last branch
- Observe the the new first branch gets expanded which is not suppose to, then the last branch that was just move to the last is collapse
What is the expected result? the last row should be expanded since that is the original first branch moved to the last and the new first row get expanded
What happens instead? opposite of the expected result
Any other information? (attach screenshot if possible)
Hello @boyetp123 ,
The version you refer to is 1.84.22, right?
If we look at this sample: https://sapui5nightly.int.sap.eu2.hana.ondemand.com/1.84.22/#/entity/sap.ui.table.TreeTable/sample/sap.ui.table.sample.TreeTable.HierarchyMaintenanceJSONTreeBinding
I can not reproduce the behaviour you are having problems with.
- The item which you drag and drop is collapsed after drop
- The rest of the items from the same level or from different level do not change their expand/collapse state. Which looks to be correct.
Please check the code in the sample for reference. The problem may come from your custom coding for the drag and drop.
If you are still experience the problem, please provide an isolated code snippet sample where we can test and observe the issue.
Regards, Alexandar Mitsev
@alexandar-mitsev , I have already tried this example, in this example the reason is you always collapse the folder that was moved
Hello @boyetp123,
Could you please provide an isolated example of the issue as @alexandar-mitsev has requested, in order to be able to observe the behaviour you are experiencing?
Thank you in advance! Best regards, Ivaylo
Since there is no response from the author for more than 4 weeks I'm closing the ticket.
Hi @boyetp123 , I'm now facing the same issue. Did you find a solution or workaround for it? I think there has already been a similar issue for a long time...
Thanks & BR Tritty