codice:
----------------------------------------------------
<script type="text/javascript">
/* <![CDATA[ */
----------------------------------------------------
jQuery("#list2").jqGrid({
url:"?module=accounts&applettype=server&mode=action&q=2",
datatype: "json",
colNames:['ID','MAIN_PHONE', 'NAME', 'EMAIL'],
colModel:[
{name:'ID',index:'ID', width:235},
{name:'MAIN_PHONE',index:'MAIN_PHONE', width:190},
{name:'NAME',index:'NAME', width:500},
{name:'EMAIL',index:'EMAIL', width:280, align:"right"}
],
rowNum:20,
rowList:[20,50,100],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
width: "100%",
height: "100%",
scrollOffset:0,
caption:"Accounts"
});
----------------------------------------------------
/* ]]> */
</script>
----------------------------------------------------