{"action":"created","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/1552","repository_url":"https://api.github.com/repos/vakata/jstree","labels_url":"https://api.github.com/repos/vakata/jstree/issues/1552/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/1552/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/1552/events","html_url":"https://github.com/vakata/jstree/issues/1552","id":173426498,"number":1552,"title":"How to find out if all child node of parent node are selected in jstree ?","user":{"login":"sunny-srivastava","id":18591276,"avatar_url":"https://avatars.githubusercontent.com/u/18591276?v=3","gravatar_id":"","url":"https://api.github.com/users/sunny-srivastava","html_url":"https://github.com/sunny-srivastava","followers_url":"https://api.github.com/users/sunny-srivastava/followers","following_url":"https://api.github.com/users/sunny-srivastava/following{/other_user}","gists_url":"https://api.github.com/users/sunny-srivastava/gists{/gist_id}","starred_url":"https://api.github.com/users/sunny-srivastava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunny-srivastava/subscriptions","organizations_url":"https://api.github.com/users/sunny-srivastava/orgs","repos_url":"https://api.github.com/users/sunny-srivastava/repos","events_url":"https://api.github.com/users/sunny-srivastava/events{/privacy}","received_events_url":"https://api.github.com/users/sunny-srivastava/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T10:57:02Z","updated_at":"2016-08-26T12:28:25Z","closed_at":null,"body":"I am working on a jstree. Here is my sample code \r\n\r\nvar data1 = [{\r\n\t\"id\":1,\r\n\t\"text\":\"C\",\r\n\t\"size\":\"\",\r\n\t\"date\":\"02/19/2010\",\r\n\t\"children\":[{\r\n\t\t\"id\":2,\r\n\t\t\"text\":\"Program Files\",\r\n\t\t\"size\":\"120 MB\",\r\n\t\t\"date\":\"03/20/2010\",\r\n\t\t\"children\":[{\r\n\t\t\t\"id\":21,\r\n\t\t\t\"text\":\"Java\",\r\n\t\t\t\"size\":\"\",\r\n\t\t\t\"date\":\"01/13/2010\",\r\n\t\t\t\"state\":\"closed\",\r\n\t\t\t\"children\":[{\r\n\t\t\t\t\"id\":211,\r\n\t\t\t\t\"text\":\"java.exe\",\r\n\t\t\t\t\"size\":\"142 KB\",\r\n\t\t\t\t\"date\":\"01/13/2010\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":212,\r\n\t\t\t\t\"text\":\"jawt.dll\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"01/13/2010\"\r\n\t\t\t}]\r\n\t\t},{\r\n\t\t\t\"id\":22,\r\n\t\t\t\"text\":\"MySQL\",\r\n\t\t\t\"size\":\"\",\r\n\t\t\t\"date\":\"01/13/2010\",\r\n\t\t\t\"state\":\"closed\",\r\n\t\t\t\"children\":[{\r\n\t\t\t\t\"id\":221,\r\n\t\t\t\t\"text\":\"my.ini\",\r\n\t\t\t\t\"size\":\"10 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":222,\r\n\t\t\t\t\"text\":\"my-huge.ini\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":223,\r\n\t\t\t\t\"text\":\"my-large.ini\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t},{\r\n\t\t\"id\":3,\r\n\t\t\"text\":\"eclipse\",\r\n\t\t\"size\":\"\",\r\n\t\t\"date\":\"01/20/2010\",\r\n\t\t\"children\":[{\r\n\t\t\t\"id\":31,\r\n\t\t\t\"text\":\"eclipse.exe\",\r\n\t\t\t\"size\":\"56 KB\",\r\n\t\t\t\"date\":\"05/19/2009\"\r\n\t\t},{\r\n\t\t\t\"id\":32,\r\n\t\t\t\"text\":\"eclipse.ini\",\r\n\t\t\t\"size\":\"1 KB\",\r\n\t\t\t\"date\":\"04/20/2010\"\r\n\t\t},{\r\n\t\t\t\"id\":33,\r\n\t\t\t\"text\":\"notice.html\",\r\n\t\t\t\"size\":\"7 KB\",\r\n\t\t\t\"date\":\"03/17/2005\"\r\n\t\t}]\r\n\t}]\r\n},{\r\n\t\"id\":4,\r\n\t\"text\":\"Grails\",\r\n\t\"size\":\"\",\r\n\t\"date\":\"02/19/2010\",\r\n\t\"children\":[{\r\n\t\t\"id\":5,\r\n\t\t\"text\":\"Program Files\",\r\n\t\t\"size\":\"120 MB\",\r\n\t\t\"date\":\"03/20/2010\",\r\n\t\t\"children\":[{\r\n\t\t\t\"id\":51,\r\n\t\t\t\"text\":\"groovy\",\r\n\t\t\t\"size\":\"\",\r\n\t\t\t\"date\":\"01/13/2010\",\r\n\t\t\t\"state\":\"closed\",\r\n\t\t\t\"children\":[{\r\n\t\t\t\t\"id\":511,\r\n\t\t\t\t\"text\":\"java.exe\",\r\n\t\t\t\t\"size\":\"142 KB\",\r\n\t\t\t\t\"date\":\"01/13/2010\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":512,\r\n\t\t\t\t\"text\":\"jawt.dll\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"01/13/2010\"\r\n\t\t\t}]\r\n\t\t},{\r\n\t\t\t\"id\":52,\r\n\t\t\t\"text\":\"MySQL\",\r\n\t\t\t\"size\":\"\",\r\n\t\t\t\"date\":\"01/13/2010\",\r\n\t\t\t\"state\":\"closed\",\r\n\t\t\t\"children\":[{\r\n\t\t\t\t\"id\":521,\r\n\t\t\t\t\"text\":\"my.ini\",\r\n\t\t\t\t\"size\":\"10 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":522,\r\n\t\t\t\t\"text\":\"my-huge.ini\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t},{\r\n\t\t\t\t\"id\":523,\r\n\t\t\t\t\"text\":\"my-large.ini\",\r\n\t\t\t\t\"size\":\"5 KB\",\r\n\t\t\t\t\"date\":\"02/26/2009\"\r\n\t\t\t}]\r\n\t\t}]\r\n\t},{\r\n\t\t\"id\":6,\r\n\t\t\"text\":\"eclipse\",\r\n\t\t\"size\":\"\",\r\n\t\t\"date\":\"01/20/2010\",\r\n\t\t\"children\":[{\r\n\t\t\t\"id\":61,\r\n\t\t\t\"text\":\"eclipse.exe\",\r\n\t\t\t\"size\":\"56 KB\",\r\n\t\t\t\"date\":\"05/19/2009\"\r\n\t\t},{\r\n\t\t\t\"id\":62,\r\n\t\t\t\"text\":\"eclipse.ini\",\r\n\t\t\t\"size\":\"1 KB\",\r\n\t\t\t\"date\":\"04/20/2010\"\r\n\t\t},{\r\n\t\t\t\"id\":63,\r\n\t\t\t\"text\":\"notice.html\",\r\n\t\t\t\"size\":\"7 KB\",\r\n\t\t\t\"date\":\"03/17/2005\"\r\n\t\t}]\r\n\t}]\r\n}]\r\n\r\n$('#data').jstree({ \r\n    core: {\r\n      data: data1, \r\n      check_callback: false\r\n    }, \r\n    checkbox: {       \r\n     \r\n      whole_node : false,\r\n      tie_selection : false \r\n    },\r\n    plugins: ['checkbox','search']\r\n})\r\n\r\n\r\nNow I want to find out that if all child node of a parent node is selected or not .\r\nI am using this event.\r\n$(\"#data\").on('check_node.jstree.jstree', function(e, data) {   //some logic here });\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vakata/jstree/issues/comments/242722134","html_url":"https://github.com/vakata/jstree/issues/1552#issuecomment-242722134","issue_url":"https://api.github.com/repos/vakata/jstree/issues/1552","id":242722134,"user":{"login":"sunny-srivastava","id":18591276,"avatar_url":"https://avatars.githubusercontent.com/u/18591276?v=3","gravatar_id":"","url":"https://api.github.com/users/sunny-srivastava","html_url":"https://github.com/sunny-srivastava","followers_url":"https://api.github.com/users/sunny-srivastava/followers","following_url":"https://api.github.com/users/sunny-srivastava/following{/other_user}","gists_url":"https://api.github.com/users/sunny-srivastava/gists{/gist_id}","starred_url":"https://api.github.com/users/sunny-srivastava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunny-srivastava/subscriptions","organizations_url":"https://api.github.com/users/sunny-srivastava/orgs","repos_url":"https://api.github.com/users/sunny-srivastava/repos","events_url":"https://api.github.com/users/sunny-srivastava/events{/privacy}","received_events_url":"https://api.github.com/users/sunny-srivastava/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T12:28:25Z","updated_at":"2016-08-26T12:28:25Z","body":"checked."}}
{"actor":{"display_login":"sunny-srivastava"}}