It is possible to define default options for all columns when they are created.
In the example we demonstrate how the all fields can not be sortable.
By default all fields are sortable.
main.php.
<?php

/* 
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHP.php to edit this template
 */

// Version 5.5.5
require_once '../../jq-config.php';
// include the jqGrid Class
require_once ABSPATH."php/PHPSuito/jqGrid.php";
// include the driver class
require_once ABSPATH."php/PHPSuito/DBdrivers/jqGridPdo.php";

$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);
$conn->query("SET NAMES utf8");
$grid = new jqGridRender($conn);
 
$grid->SelectCommand "
select m.ID,
m.CustomerFullName,
m.Status
from tblMain m,
tblCustomers c,
tblStatus s
where m.CustomerFullName = c.CustomerFullNameID and
m.Status = s.StatusID"
;
 
$grid->dataType 'json';
$grid->table='tblMain';
$grid->setPrimaryKeyID('ID');
 
$grid->setColModel();
$grid->setGridOptions(array(
"rowNum"=>10,
"rowList"=>array(10,40,50),
"sortname"=>"CustomerFullName",
// "sortorder"=>"asc",
"hoverrows"=>true,
"altRows"=>true,
"height"=>"600",
"autowidth"=>true,
"toppager"=>true,
"caption"=>"Customers"
));
 
$grid->setUrl('main.php');
$grid->setFilterOptions(array("searchOperators"=>true));
 
$grid->setSelect("CustomerFullName","SELECT CustomerFullNameID, CustomerFullName from tblCustomers order by 2"truetruetrue, array(""=>""));
$grid->setSelect("Status","SELECT StatusID, Status from tblStatus order by 2"truetruetrue, array(""=>""));
 
$grid->navigator true;
$grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>false,"del"=>false,"view"=>true"search"=>true"cloneToTop"=>true));
$grid->setNavOptions('add',array("height"=>"auto","dataheight"=>"auto","width"=>"auto","closeAfterAdd"=>true));
$grid->setNavOptions('view',array("top"=>30,"left"=>30,"height"=>"auto","dataheight"=>"auto","width"=>800,"labelswidth"=>"20%"));
 
$grid->renderGrid('#grid4','#grid4-toppager',truenullnulltruefalse);