Jquery jqgrid pivot

poruka: 1
|
čitano: 482
|
moderatori: Danny_HR, Lazarus Long, XXX-Man
1
+/- sve poruke
ravni prikaz
starije poruke gore
11 godina
offline
Jquery jqgrid pivot

Koristim ovaj kod da prikažem podatke pivot tablice.

Međutim, javlja mi grešku: length undefined in jquery.jqGrid-4.7.1.min.js.

 

$("#dumasGridObrok").jqGrid('jqPivot', 
{ 
url: '@Url.Action("GetDumas", "BoneID")', mtype: "POST", datatype: 'json', 
postData: { odjel: odjelId, type: '@BoneID.Web.Client._str.DumasPlaner' },
gridview: true,
colModel: result,
height: '100%',
width: document.getElementById('results').offsetWidth - 10,
autowidth: false,
rowNum: -1,
altRows: true,
altclass: 'alt-rows',
resizeStop: function () {
$(this).jqGrid("setGridWidth", this.grid.newWidth, false);
},
loadError: function (xhr, status, error) { showError(xhr.responseText); },
cmTemplate: { title: false },
sortable: false,
responsive: true,
paging: false,
ordering: false,
info: false,
searching: false,
viewrecords: true,
hoverrows: false,
cellEdit: true, 
xDimension: [
{ dataName: "Pin", label: "Pin" },
{ dataName: "Name", label: "Name" },
{ dataName: "Surname", label: "Surname" }
],
yDimension: [
{ dataName: "M1" },
{ dataName: "M2" },
{ dataName: "M3" },
{ dataName: "M4" }
],
aggregates: [
{ member: "MealType", aggregator: "sum", label: "{1}" }
],
cellsubmit: 'remote',
loadtext: '@IO.Language._General.Loading' + '...',
hidegrid: false, /* sakrij minimize */
loadComplete: function (data) {
$(this).setCaption(selectedTreeOdjelName);
if (gvpOdjelId > 0) {
$.ajax({
url: '@Url.Action("GetAdminStatus", "BoneID")', type: 'POST', datatype: 'json', data: { odjelId: gvpOdjelId },
dataSrc: "",
success: function (d) {
dumAdminOvlast = d.admin.Ovlast;
$('#dumAdminOvlastTxt').text(d.admin.Name);
$("#omoguciIzmjenu").button(dumAdminOvlast < 300 ? "disable" : "enable");
}
});
} 
}
} 
)}

hrckuhar.com - mjesto najboljih recepata
 
0 0 hvala 0
1
Nova poruka
E-mail:
Lozinka:
 
vrh stranice