Note that there are some explanatory texts on larger screens.

plurals
  1. POJQgrid total amount row
    primarykey
    data
    text
    <p>iv seen an example by @Oleg for row total sum in jqgrid but i tried to apply it and it wont work i have the following grid i need to calculate the amount value for it.</p> <pre><code>colNames: ['ID', 'FTE', 'Workload'], colModel: [ { name: 'ID', index: 'ID', width: 200, align: 'left', hidden: true }, { name: 'FTEValue', index: 'FTEValue', width: 200, align: 'left', formatter: 'number' }, { name: 'Workload', index: 'Workload', width: 200, align: 'left' }, caption: "Activity FTE", gridview: true, rownumbers: true, rownumWidth: 40, scroll: 0, rowNum: 100, sortname: 'ID', pager: '#pager', sortorder: "asc", viewrecords: true, autowidth: true, height: '100%', footerrow: true, jsonReader: { root: "GridData", page: "CurrentPage", total: "TotalPages", records: "TotalRecords", repeatitems: false, id: "0" } }; DutyFTEGrid.prototype.SetupGrid = function (selector) { jQuery(selector).html('&lt;table id="grid"&gt;&lt;/table&gt;&lt;div id="pager"&gt;&lt;/div&gt;'); var grid = jQuery("#grid").jqGrid(this.gridConfiguration); jQuery("#grid").jqGrid('navGrid', '#pager', { edit: false, add: false, search: false }, {}, {}, { // Delete parameters ajaxDelOptions: { contentType: "application/json" }, mtype: "DELETE", serializeDelData: function () { return ""; }, onclickSubmit: function (params, postdata) { params.url = serviceURL + 'DutyFTE(' + encodeURIComponent(postdata) + ')/'; } }); var grid = $("#grid"); var sum = grid.jqGrid('getCol', 'FTE', false, 'sum'); grid.jqGrid('footerData', 'set', { DriverEn: 'Total FTE:', FTEValue: sum }); }; </code></pre> <p>Oleg your help please, i have tried your example but it didnt work for some reason.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload