title: jsTree checkbox check_node is not working
body: <p>jstree v1.0</p>
  
  <p>I have just made modification on checkbox example: <a href="http://www.jstree.com/documentation/checkbox" rel="nofollow">http://www.jstree.com/documentation/checkbox</a></p>
  
  <p>My goal:
  When checking any of the nodes I want all parent node to be checked (default behavior is not OK, because that is something partially selected which is not good for me)</p>
  
  <p>based on tips and documentation i have extended the original example but I have found that the <code>check_node</code> method is not working. I have not noticed any effect.</p>
  
  <p>Any tips or advice is welcomed.</p>
  
  <pre><code>&lt;div id="demo1" class="demo"&gt;
      &lt;ul&gt;
          &lt;li id="phtml_1"&gt;
              &lt;a href="#"&gt;Root node 1&lt;/a&gt;
              &lt;ul&gt;
                  &lt;li id="phtml_2" &gt;
                      &lt;a href="#"&gt;Child node 1&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li id="phtml_3"&gt;
                      &lt;a href="#"&gt;A Child node 2&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li id="phtml_4"&gt;
              &lt;a href="#"&gt;Root node 2&lt;/a&gt;
          &lt;/li&gt;
          &lt;li id="phtml_5"&gt;
              &lt;a href="#"&gt;Root node 1&lt;/a&gt;
              &lt;ul&gt;
                  &lt;li id="phtml_51"&gt;
                      &lt;a href="#"&gt;Child node 1&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li id="phtml_52"&gt;
                      &lt;a href="#"&gt;A Child node 2&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li id="phtml_6"&gt;
              &lt;a href="#"&gt;Root node 1&lt;/a&gt;
              &lt;ul&gt;
                  &lt;li id="phtml_61"&gt;
                      &lt;a href="#"&gt;Child node 1&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li id="phtml_62"&gt;
                      &lt;a href="#"&gt;A Child node 2&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript" class="source"&gt;
  $(function () {
      var x = $("#demo1");
      $(x).jstree({
          "checkbox" :{
              real_checkboxes:false,
              override_ui:true,
              two_state:false,    
          },
          "plugins" : [ "themes", "html_data", "checkbox", "ui" ]
      }).bind('check_node.jstree', function (e, data) { 
          console.log('check_node.jstree ----------------------------------------------');
          console.log(e);
          var all_selected = $(x).jstree('get_checked')
          console.log('all_selected='+all_selected);
          for(var i=0;i&lt;all_selected.length;i++){
              var paths = $(x).jstree('get_path', all_selected[i], true);
              console.log('  paths='+paths);
              for(var j=0; j&lt; paths.length;j++){
                  console.log('    checking node (not working)='+paths[j]);
                  $(x).jstree('check_node',paths[j]);
              }
          }
      });
      console.log('programaticcaly checking last parent node (not working)')
      //$(x).jstree('check_node',$('li#phtml_6'));
      $.jstree._reference("#demo1").check_node('li#phtml_6');
  });
  &lt;/script&gt;
  </code></pre>