You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I am using this plugin but when I integrated the tree structure data with my database such that the data is also saved in the MySQL database to save the id, parent, level, title and return me the saved tree structure when I reload the page but when I refresh the page the tree structure breaks, It is because now the parent and child are not one after another in a structured format from top to bottom , i.e random for every branch and not in ascending order.
The data structure should be in ascending order of the parents and childs otherwise the tree breaks !!!
But it's not possible because parents, childs and siblings of the tree is created randomly and when we drag and drop the tree structure will differ, hence the tree breaks .
The text was updated successfully, but these errors were encountered:
I have updated my issue please have you look !
For simplicity lets take this array , In id : 8 (Branch 8), though its parent_id is 7 and level : 2 it gets under the id: 4 element i.e Branch 4 . Why does the tree structure breaks ?
Expected Behaviour should be that the id: 8 element gets attached to it's parent_id : 7 i.e Branch 7
lavesh01
changed the title
The tree structure breaks when the id's not in ascending order.
The tree structure breaks when the parents and childs are not in ascending order.
Jul 20, 2023
In my project, I am using this plugin but when I integrated the tree structure data with my database such that the data is also saved in the MySQL database to save the id, parent, level, title and return me the saved tree structure when I reload the page but when I refresh the page the tree structure breaks, It is because now the parent and child are not one after another in a structured format from top to bottom , i.e random for every branch and not in ascending order.
The data structure should be in ascending order of the parents and childs otherwise the tree breaks !!!
But it's not possible because parents, childs and siblings of the tree is created randomly and when we drag and drop the tree structure will differ, hence the tree breaks .
The text was updated successfully, but these errors were encountered: