Adding, updating and deleting nodes is possible with form edit
<?php 
require_once '../../../php/demo/tabs.php';
?>
<!DOCTYPE html>
<html>
  <head>
    <title>Guriddo TreeGrid PHP Demo</title>
    <link rel="stylesheet" type="text/css" media="screen" href="../../../css/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../../css/trirand/ui.jqgrid.css" />
    <style type="text">
        html, body {
        margin: 0;            /* Remove body margin/padding */
        padding: 0;
        overflow: hidden;    /* Remove scroll bars on browser window */
        font-size: 75%;
        }
        
    </style>
    <script src="../../../js/jquery.min.js" type="text/javascript"></script>
    <script src="../../../js/trirand/i18n/grid.locale-en.js" type="text/javascript"></script>
    <script src="../../../js/jquery-ui.min.js" type="text/javascript"></script>
     <script src="../../../js/trirand/jquery.jqGrid.min.js" type="text/javascript"></script> 
    <script type="text/javascript">         
        $.jgrid.no_legacy_api = true;
        $.jgrid.useJSON = true;
        $.jgrid.defaults.width = "700";
    </script>
  </head>
  <body>
      <div>
          <?php include ("treegrid.php");?>
      </div>
      <br/>
      <?php tabs(array("treegrid.php"));?>
   </body>
</html>
treegrid.php.
<?php
ini_set
("display_errors",1);
require_once 
'../jq-config.php';
// include the driver class
require_once ABSPATH."php/PHPSuito/DBdrivers/jqGridPdo.php";
// include the jqGrid Class
require_once ABSPATH."php/PHPSuito/jqTreeGrid.php";


// Connection to the server
$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);
// Tell the db that we use utf-8
$conn->query("SET NAMES utf8");
// Create the jqTreeGrid instance
$tree = new jqTreeGrid($conn);

$tree->SelectCommand "SELECT * FROM accounts";

// set the table and primary key
$tree->table 'accounts';
$tree->setPrimaryKeyId('account_id');
// set tree model and table configuration
$tree->setTreeModel('adjacency');
$tree->setTableConfig(array('id'=>'account_id''parent'=>'parent_id'));


// autoloading is disabled
$tree->autoLoadNodes false;
// collapse all nodes (default)
$tree->expandAll true;
// show any error (if any ) from server
$tree->showError true;

$tree->setColModel();

$tree->setUrl('treegrid.php');
$tree->dataType 'json';
// Some nice setting
$tree->setColProperty('name',array("label"=>"Name""width"=>170));
$tree->setColProperty('acc_num',array("label"=>"Number""width"=>170));
$tree->setColProperty('debit',array("label"=>"Debit""width"=>90"align"=>"right"));
$tree->setColProperty('credit',array("label"=>"Credit""width"=>90"align"=>"right"));
$tree->setColProperty('balance',array("label"=>"Balance""width"=>90"align"=>"right"));

// hide the not needed fields
$tree->setColProperty('account_id',array("hidden"=>true));
$tree->setColProperty('parent_id',array("hidden"=>true));

// and finaly set the expand column and height to auto
$tree->setGridOptions(array(
    
"ExpandColumn"=>"name",
    
"height"=>'auto',
    
"sortname"=>"account_id",
    
// allow automatic scrolling of the rows
    
"scrollrows"=>true
    
));
// enable key navigation
$tree->callGridMethod('#tree''bindKeys');
$tree->navigator true;
$after = <<< AFTER
function(data, postdata,oper) {
    var response = data.responseText.split("##");
    if(response[0]==='success') {
        return [true,response[1],response[2]];
    } else {
        return [false,response[1]];
    }
}
AFTER;
$tree->setNavOptions('navigator', array("add"=>true,"edit"=>true"del"=>true"search"=>false"excel"=>false));
$tree->setNavOptions('add', array("reloadAfterSubmit"=>false));
$tree->setNavOptions('edit', array("reloadAfterSubmit"=>false));
$tree->setNavEvent('add''afterSubmit'$after);
$tree->setNavEvent('edit''afterSubmit'$after);
$tree->renderTree('#tree''#pager'true,nullnulltruetrue);