excuse me, myCode
$(document).ready(function(){
$(“#list”).jqGrid({
url:’index.cfm?event=listaDep’,
datatype: ‘xml’,
colNames:,
colModel :[
{name:’Id’,index:’Id’, width:20, align:’left’,hidden:’true’, xmlmap:’ID’},
{name:’Deposito’,index:’Status’, width:200, align:’left’,xmlmap:’DEPOSITO’},
{name:’Indirizzo’,index:’Tipo’, width:200, xmlmap:’INDIRIZZO’},
{name:’Tipo’,index:’Tipo’, width:200, xmlmap:’TIPO’}],
imgpath: ‘assets/css/jqgrid/themes/basic/images’,
pager: jQuery(‘#pager’),
rowNum:10,
rowList:[10,20,30],
altRows:true,
sortname: ‘Deposito’,
sortorder: “asc”,
viewrecords:true,
caption: “Depositi”,
onSelectRow:function(rowId){
var myRow = $(“#list”).getGridParam(‘selrow’);
var id = $(“#list”).getRowData(myRow)[“Id”];
$(“#id”).val(id);
var deposito = $(“#list”).getRowData(myRow)[“Deposito”];
$(“#deposito”).val(deposito);
var indirizzo = $(“#list”).getRowData(myRow)[“Indirizzo”];
$(“#indirizzo”).val(indirizzo);
var tipo = $(“#list”).getRowData(myRow)[“Tipo”];
$(“#tipo”).val(tipo);
},
xmlReader:{root:”depositi”,
row:”deposito”,
repeatitems:false,
id:”ID”,
page:”items>nPage”,
total:”items>tPages”,
records:”items>tRecords”}
})
})
what am i missing to display buttons on #pager bar?
tnx and regards
salvatore