mysql - how to do calculation in jqgrid PHP -
i have problem
i have 3 column in jqgrid
.
let’s a
,b
,c
.
when insert data, have fill info column a
, b
.
column c
automatically inserted value of a
+b
.
i'm using jqgrid php , i’m using form insert data
is there way on how assign , insert value of c
?
you can calculate value of c custom formatter without php
<table id="#grid-table"></table> jquery("#grid-table").jqgrid({ colnames: ['id', 'a', 'b', 'c'], colmodel: [ {name: 'id', key: true, index: 'id', hidden: true}, {name: 'a', index: 'a'}, {name: 'b', index: 'b'}, {name: 'c', formatter: function(cellvalue, options, rowdata) { homecoming rowdata.a + rowdata.b; }} ] })
php mysql jqgrid
No comments:
Post a Comment