my jqGrid definition
$(“#process_list”).jqGrid({
datatype: 'jsonstring',
datastr: mystr,
colNames:['id','Pid','PPid', 'Name', 'Path','CmdLine'],
colModel:[
{name:'id', index:'id', width:0},
{name:'pid', index:'pid', width:50},
{name:'ppid', index:'ppid', width:50},
{name:'name', index:'name', width:150},
{name:'path', index:'path', width:250},
{name:'cmdline',index:'cmdline',width:300}
],
sortname: 'pid',
viewrecords: true,
sortorder: “desc”,
multiselect: false,
caption:”Process list”
});