title: Reload jsTree data return in an Ajax Request
body: <p>My jsTree contains html data that is set when the tree loads (see javascript below).  This works correctly.  However, I want to be able to reload the entire tree in an Ajax request based on certain user actions.  I basically need to reload all the tree data returned from the Ajax request.  Is this possible?</p>
  
  <p>My current code is below:</p>
  
  <pre><code>function setJoinType(node, joinType) {
      $.ajax({
          type: "POST",
          url: "qbwizard.aspx/SetJoinType",
          contentType: "application/json; charset=utf-8",
          data: "{'alias': '" + node[0].id + "', 'joinType': '" + joinType + "'}",
          dataType: "json",
          success: RedrawJoinSummary,
          error: AjaxFailed
      });
      return true;
  }
  function RedrawJoinSummary(data) {
      //$("#tvJoinSummary").jstree('destroy'); 
      $("#tvJoinSummary").jstree("html", data.d);
      $("#tvJoinSummary").jstree("refresh", -1);
  }
  </code></pre>