-
Notifications
You must be signed in to change notification settings - Fork 0
/
40frmactions.js
30 lines (30 loc) · 1.06 KB
/
40frmactions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
jQuery("#frmac").jqGrid({
url:'server.php?q=4',
datatype: "json",
colNames:[' ', 'Inv No', 'Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name: 'myac', width:80, fixed:true, sortable:false, resize:false, formatter:'actions',
formatoptions:{keys:true}},
{name:'id', key : true, index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name', index:'name', width:100},
{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}
],
rowNum:10,
width:700,
rowList:[10,20,30],
pager: '#pfrmac',
sortname: 'invdate',
viewrecords: true,
sortorder: "desc",
jsonReader: {
repeatitems : false
},
caption: "Keyboard Navigation",
height: '100%',
editurl : 'server.php?q=dummy'
});
jQuery("#kfrmac").jqGrid('navGrid','#pfrmac',{edit:false,add:false,del:false});