{"_id":"5aff027686c0a90003b923a1","category":{"_id":"5aff027686c0a90003b923b1","version":"5aff027686c0a90003b923b4","project":"5707c6875309d117006948d4","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-07-15T07:28:09.870Z","from_sync":false,"order":0,"slug":"getting-started","title":"Basic"},"project":"5707c6875309d117006948d4","user":"54d742a80771980d0052f4b5","parentDoc":null,"version":{"_id":"5aff027686c0a90003b923b4","project":"5707c6875309d117006948d4","__v":0,"forked_from":"5ab4fbd96316b00012bd8970","createdAt":"2018-03-23T13:06:33.352Z","releaseDate":"2018-03-23T13:06:33.352Z","categories":["5aff027686c0a90003b923b1","5aff027686c0a90003b923b2","5aff027686c0a90003b923b3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"7.2.0","version":"7.2.0"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-04-17T17:05:14.362Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":10,"body":"[block:api-header]\n{\n  \"title\": \"Tree not rendered\"\n}\n[/block]\nCase: when tree is hidden (for example inside tab or modal), it is not rendered when it becomes visible.\nSolution: after it becomes visible (preferably using setTimeout) - call `tree.sizeChanged()`, which recalculates the rendered nodes according to the actual viewport size.\n[block:api-header]\n{\n  \"title\": \"Tree state (expanded / selected nodes) gets lost\"\n}\n[/block]\nMaybe you are not supplying unique IDs to the nodes.\nThe tree maintains its state by using IDs, and if you don't supply ones the tree will generate random ones automatically. Which means that if you update the data - the state will be lost.\n[block:api-header]\n{\n  \"title\": \"Drag and Drop doesn't work on mobile\"\n}\n[/block]\nSee [Drag & Drop](doc:drag-drop) page, there's a section about mobile.\n[block:api-header]\n{\n  \"title\": \"Scroll Into View doesn't work\"\n}\n[/block]\nSee scrollContainer option in [Options](doc:options-2) for more information","excerpt":"","slug":"common-issues","type":"basic","title":"Common Issues"}
[block:api-header] { "title": "Tree not rendered" } [/block] Case: when tree is hidden (for example inside tab or modal), it is not rendered when it becomes visible. Solution: after it becomes visible (preferably using setTimeout) - call `tree.sizeChanged()`, which recalculates the rendered nodes according to the actual viewport size. [block:api-header] { "title": "Tree state (expanded / selected nodes) gets lost" } [/block] Maybe you are not supplying unique IDs to the nodes. The tree maintains its state by using IDs, and if you don't supply ones the tree will generate random ones automatically. Which means that if you update the data - the state will be lost. [block:api-header] { "title": "Drag and Drop doesn't work on mobile" } [/block] See [Drag & Drop](doc:drag-drop) page, there's a section about mobile. [block:api-header] { "title": "Scroll Into View doesn't work" } [/block] See scrollContainer option in [Options](doc:options-2) for more information