-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path40addnode.js
More file actions
21 lines (21 loc) · 821 Bytes
/
40addnode.js
File metadata and controls
21 lines (21 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
jQuery("#addtree").jqGrid({
url: 'server.php?q=tree',
treedatatype: "xml",
mtype: "POST",
colNames:["id","Account","Acc Num", "Debit", "Credit","Balance"],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true, editable:true},
{name:'name',index:'name', width:180, editable:true},
{name:'num',index:'acc_num', width:80, align:"center",editable:true},
{name:'debit',index:'debit', width:80, align:"right",editable:true},
{name:'credit',index:'credit', width:80,align:"right",editable:true},
{name:'balance',index:'balance', width:80,align:"right",editable:true}
],
height:'auto',
pager : "#paddtree",
treeGrid: true,
ExpandColumn : 'name',
editurl:'server.php?q=dummy',
caption: "Add Tree node example"
});
jQuery("#addtree").jqGrid('navGrid',"#paddtree");