Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
' + k + a.jgrid.template(o.groupText[s.idx], d, s.cnt, s.summary) + "
";
var y = g - 1 === s.idx;
if (y) {
var z = o.groups[v + 1], u, r, D;
var t = z !== undefined ? o.groups[v + 1].startRow : b.length;
for (r = s.startRow; r < t; r++) {
j += b[r].join("")
}
var w;
if (z !== undefined) {
for (w = 0; w < o.groupField.length; w++) {
if (z.dataIndex === o.groupField[w]) {
break
}
}
e = o.groupField.length - w
}
for (D = 0; D < e; D++) {
if (!m[D]) {
continue
}
var A = "";
if (o.groupCollapse && !o.showSummaryOnHide) {
A = ' style="display:none;"'
}
j += "
';
var x = p(v, D, o.groups), C = f.p.colModel, B, E = x.cnt;
for (u = 0; u < c; u++) {
var q = "
", F = "{0}";
a.each(x.summary, function () {
if (this.nm === C[u].name) {
if (C[u].summaryTpl) {
F = C[u].summaryTpl
}
if (typeof this.st === "string" && this.st.toLowerCase() === "avg") {
if (this.sd && this.vd) {
this.v = (this.v / this.vd)
} else {
if (this.v && E > 0) {
this.v = (this.v / E)
}
}
}
try {
B = f.formatter("", this.v, u, this)
} catch (H) {
B = this.v
}
q = "
" + a.jgrid.format(F, B) + "
";
return false
}
});
j += q
}
j += "
"
}
e = w
}
});
a("#" + a.jgrid.jqID(f.p.id) + " tbody:first").append(j);
j = null
})
}, groupingGroupBy: function (c, b) {
return this.each(function () {
var f = this;
if (typeof c === "string") {
c = [c]
}
var d = f.p.groupingView;
f.p.grouping = true;
if (d.visibiltyOnNextGrouping === undefined) {
d.visibiltyOnNextGrouping = []
}
var e;
for (e = 0; e < d.groupField.length; e++) {
if (!d.groupColumnShow[e] && d.visibiltyOnNextGrouping[e]) {
a(f).jqGrid("showCol", d.groupField[e])
}
}
for (e = 0; e < c.length; e++) {
d.visibiltyOnNextGrouping[e] = a("#" + a.jgrid.jqID(f.p.id) + "_" + a.jgrid.jqID(c[e])).is(":visible")
}
f.p.groupingView = a.extend(f.p.groupingView, b || {});
d.groupField = c;
a(f).trigger("reloadGrid")
})
}, groupingRemove: function (b) {
return this.each(function () {
var e = this;
if (b === undefined) {
b = true
}
e.p.grouping = false;
if (b === true) {
var c = e.p.groupingView, d;
for (d = 0; d < c.groupField.length; d++) {
if (!c.groupColumnShow[d] && c.visibiltyOnNextGrouping[d]) {
a(e).jqGrid("showCol", c.groupField)
}
}
a("tr.jqgroup, tr.jqfoot", "#" + a.jgrid.jqID(e.p.id) + " tbody:first").remove();
a("tr.jqgrow:hidden", "#" + a.jgrid.jqID(e.p.id) + " tbody:first").show()
} else {
a(e).trigger("reloadGrid")
}
})
}, groupingCalculations: {handler: function (f, i, g, j, h, b) {
var c = {sum: function () {
return parseFloat(i || 0) + parseFloat((b[g] || 0))
}, min: function () {
if (i === "") {
return parseFloat(b[g] || 0)
}
return Math.min(parseFloat(i), parseFloat(b[g] || 0))
}, max: function () {
if (i === "") {
return parseFloat(b[g] || 0)
}
return Math.max(parseFloat(i), parseFloat(b[g] || 0))
}, count: function () {
if (i === "") {
i = 0
}
if (b.hasOwnProperty(g)) {
return i + 1
}
return 0
}, avg: function () {
return c.sum()
}};
if (!c[f]) {
throw ("jqGrid Grouping No such method: " + f)
}
var e = c[f]();
if (j != null) {
if (h === "fixed") {
e = e.toFixed(j)
} else {
var d = Math.pow(10, j);
e = Math.round(e * d) / d
}
}
return e
}}})
})(jQuery);