{"action":"closed","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/1163","labels_url":"https://api.github.com/repos/vakata/jstree/issues/1163/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/1163/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/1163/events","html_url":"https://github.com/vakata/jstree/issues/1163","id":91750514,"number":1163,"title":"How to populate child nodes only on expanding/selection of parent node??","user":{"login":"vaniaravinda","id":12931475,"avatar_url":"https://avatars.githubusercontent.com/u/12931475?v=3","gravatar_id":"","url":"https://api.github.com/users/vaniaravinda","html_url":"https://github.com/vaniaravinda","followers_url":"https://api.github.com/users/vaniaravinda/followers","following_url":"https://api.github.com/users/vaniaravinda/following{/other_user}","gists_url":"https://api.github.com/users/vaniaravinda/gists{/gist_id}","starred_url":"https://api.github.com/users/vaniaravinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaniaravinda/subscriptions","organizations_url":"https://api.github.com/users/vaniaravinda/orgs","repos_url":"https://api.github.com/users/vaniaravinda/repos","events_url":"https://api.github.com/users/vaniaravinda/events{/privacy}","received_events_url":"https://api.github.com/users/vaniaravinda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T09:22:24Z","updated_at":"2015-06-29T10:44:37Z","closed_at":"2015-06-29T10:44:37Z","body":"Hi,\r\n\r\nI tried with below code which is not populating the tree view at all. Helpful for all the valuable suggestions.\r\n\r\n```\r\n<div id=\"selector\">\r\n</div>\r\n<script type=\"text/javascript\">\r\n    debugger;\r\n    jQuery(function ($) {\r\n        $(\"#selector\").jstree({\r\n            \"json_data\": {\r\n                \"data\": [\r\n                             {\r\n                                 \"data\": \"Employee 1\",\r\n                                 \"children\": [\r\n                                   { \"data\": \"Official\" },\r\n                                   { \"data\": \"Personal\", \"children\": [\"Salary Slips\", \"Jokes\"] },\r\n                                   { \"data\": \"Medical\" },\r\n                                 ]\r\n                             },\r\n                             {\r\n                                 \"data\": \"Employee 2\",\r\n                                 \"children\": [\r\n                                   { \"data\": \"Official\" },\r\n                                   { \"data\": \"Personal\", \"children\": [\"Salary Slips\", \"Jokes\"] },\r\n                                   { \"data\": \"Medical\" },\r\n                                 ]\r\n                             },\r\n                             {\r\n                                 \"data\": \"Employee 3\",\r\n                             }\r\n                ]\r\n            },\r\n            \"plugins\": [\"themes\", \"json_data\", \"ui\"]\r\n        }).bind();\r\n    })\r\n</script>\r\n```\r\n\r\nThanks,\r\nVani Aravinda"}}