jQuery(document).ready(function(){
jQuery(“#person_list”).jqGrid({
url:’server-update.php?q=1′,
datatype: “json”,
colNames:,
colModel:[
//{name:”, sortable:true, index:’a.personType’, width:25, hidden:false,search:false,hidedlg:true},
//search ID on
//{name:”, index:’a.personID’, width:20, hidden:false,searchoptions:{sopt:}},
//search ID off
{name:’ID’,key : true, index:’a.personID’, width:20},
{name:’Type’, index:’isStudent’, sortable:true, width:25},
{name:’Last’, index:’a.lastName’, width:40},
{name:’First’, index:’a.firstName’, width:30},
{name:’Email’, sortable:true, index:’a.emailAddress’, width:60},
{name:’Phone’, sortable:false,index:’phone’, width:35},
{name:’Address’, sortable:false,index:’address’, width:100},
{name:’Custom’, sortable:false,search:false, hidden:false, index:’custom’, width:30},
{name:’Registrations’, sortable:false,search:false, hidden:false, index:’programCode’, width:100},
{name:’Balance’, sortable:false,search:false, hidden:false, index:’balance’, width:40} //CN change 30 to 40
],
rowNum:7,
autowidth: true,
pager: ‘#pagerb’,
sortname: ‘lastName’,
rowList:[10,20,50,100],
viewrecords: true,
sortorder: “asc”,
caption: “”,
});
$(“#bsdata”).click(function(){
// jQuery(“#person_list”).jqGrid(‘navGrid’,’#pagerb’,{edit:false,add:false,del:false},
//{},{},{},
//{multipleSearch:true, multipleGroup:true});
jQuery(“#person_list”).jqGrid(‘searchGrid’, {sopt:} );});
});