I try to use jqGrid 3.6.1. After create the files and config it, it’s show the result, truly. So I tried to adding the additional possible facilities, everything is good but I can’t active navigator! It doesn't show any error in IE and also in firebug, but it doesn’t show navigator.
this is my code:
jQuery(document).ready(function(){
jQuery(”#list”).jqGrid({
direction: “rtl”,
recordpos : “left”,
url:’example.php’,
datatype: ‘xml’,
mtype: ‘GET’,
colNames:['ROW','DATE', 'AMOUNT','TAX','TOTAL','COMM'],
colModel :[
{name:'invid', index:'invid', width:55, editable:true},
{name:'invdate', index:'invdate', width:90, editable:true},
{name:'amount', index:'amount', width:80, align:'right', editable:true},
{name:'tax', index:'tax', width:80, align:'right', editable:true},
{name:'total', index:'total', width:80, align:'right', editable:true},
{name:'note', index:'note', width:150, sortable:false, editable:true}
],
pager: ‘#pager’,
rowNum:10,
rowList:[10,20,30],
sortname: ‘invid’,
sortorder: ‘asc’,
viewrecords: true,
multiselect: true,
height: “100%”,
width: 800,
editurl:”someurl.php”,
caption: ‘myTest’
});
});
jQuery(”#list”).jqGrid(’navGrid’,'#pager’,{edit:false,add:true,del:false});
jQuery(”#list”).filterToolbar(); // This one doesn’t work, too!
Also I used another way to call navGrid:
}).navGrid(”#pager”,{edit:false,add:true,del:false});
Please help me to solve it. I’m confused!
Regards,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top