No…something fishy..i could n’t see why it is not running…
here is the whole file..
jqGrid Demo
{literal}
html, body {
margin: 0; /* Remove body margin/padding */
padding: 0;
overflow: auto; /* Remove scroll bars on browser window */
font: 12px “Lucida Grande”, “Lucida Sans Unicode”, Tahoma, Verdana;
}
{/literal}
{literal}
jQuery(document).ready(function(){
jQuery(“#list2”).jqGrid({
url:’http://localhost:81/admin/person/view1′,
datatype: “json”,
colNames:,
colModel:[
{name:’id’,index:’id’, width:55},
{name:’invdate’,index:’invdate’, width:90},
{name:’name’,index:’name asc, invdate’, width:100},
{name:’amount’,index:’amount’, width:80, align:”right”},
{name:’tax’,index:’tax’, width:80, align:”right”},
{name:’total’,index:’total’, width:80,align:”right”},
{name:’note’,index:’note’, width:150, sortable:false}
],
pager: jQuery(‘#pager2’),
rowNum:10,
rowList:[10,20,30],
imgpath: ‘js/jqgrid/themes/sand/images’,
sortname: ‘id’,
viewrecords: true,
sortorder: “desc”,
caption: “Demo”
});
});
{/literal}