Closed PaolaRuby closed 2 years ago
Hi again,
-tmpdata= "<td "+$t.formatCol(k,1,'')+">"+$.jgrid.template(tplfld, vv, fdata.cnt, fdata.dataIndex, fdata.displayValue)+ "</td>";
+tmpdata= "<td "+$t.formatCol(k,1,'')+">"+$.jgrid.template(tplfld, vv, fdata.cnt, fdata.dataIndex, fdata.displayValue, fdata.summary)+ "</td>";
https://github.com/tonytomov/jqGrid/blob/10bca9a05bdec7eb69885bc6c7bf4306161fa14b/js/grid.grouping.js#L346
looks like adding fdata.summary
on that line fix the problem
DEMO: https://jsfiddle.net/nh9a7xo2/
Thanks for look at this. With your solution you can attach fields only if they have summaryTpl property. Any field without this property can't be set. Instead of this I will include your solution.
Thank you.
Thanks
Of course, only when they have summary property, same functionality as groupText
On
groupText
i can use another cols, but if i try the same onsummaryTpl
it gives meundefined
How can i achieve the same result on both??Maybe is a bug or it is not supported and could be a new feature
Using: jqGrid JS - v5.7.0 DEMO: https://jsfiddle.net/yLzmop75/1/