0
'setcellvalue'를 수행하는 데 알려진 문제가 있습니까?jqxGrid ('setcellvalue')의 알려진 문제
var bGrid = $('#jqxBOMGrid').jqxGrid('getrows');
for (var i = 0; i < bGrid.length; ++i) {
if(<<bGrid[i] == the one I want to find >>) {
console.log("tko", Tko, "qty", qty, typeof (qty), "idx", i, bGrid[i]);
$('#jqxBOMGrid').jqxGrid('setcellvalue', i, "Qty", qty);
}
}
이 경우 색인 4의 유효한 값이 'i'임을 입증했습니다. 'Qty'는 문자열 "8"입니다.
$('#jqxBOMGrid').jqxGrid({
width: 1400
, height: 700
, source: daBOMGrid
, enableellipsis: true
, editable: true
, filterable: true
, autoshowfiltericon: true
, sortable: true
, columns: [
{ text: 'Qty', datafield: 'Qty', width: 50, cellsalign: 'center', columntype: 'textbox', sortable: false, editable: false },
{ text: 'QtyPreEdit', datafield: 'QtyPreEdit', hidden: true, editable: false, sortable: false },
{ text: 'Id', datafield: 'PartID', hidden: true, editable: false, sortable: false },
{ text: 'CategoryPartsID', datafield: 'CategoryPartsID', hidden: true, editable: false, sortable: false },
{ text: 'Tko P/n', datafield: 'TkoPartNo', width: 60, cellsalign: 'left', editable: false, sortable: true },
{ text: 'Mfg P/n', datafield: 'ManuPartNo', width: 200, cellsalign: 'left', editable: false, sortable: true },
{ text: 'Manufacturer', datafield: 'Manufacturer', width: 200, cellsalign: 'left', editable: false, sortable: false },
{ text: 'Description', datafield: 'PartDescript', width: 600, cellsalign: 'left', editable: false, sortable: false },
{ text: 'Status', datafield: 'Status', width: 100, cellsalign: 'right', editable: false, sortable: false },
{ text: 'UnitOfMeasure', datafield: 'UnitOfMeasure', hidden: true, editable: false, sortable: false },
{ text: 'Voltage', datafield: 'Voltage', hidden: true, editable: false, sortable: false },
{ text: 'Website', datafield: 'Website', width: 100, cellsalign: 'right', editable: false, sortable: false },
{ text: 'Spare %', datafield: 'SparePercentage', width: 70, cellsalign: 'right', editable: false, sortable: false },
{ text: 'DateCreated', datafield: 'DateCreated', hidden: true, editable: false, sortable: false },
{ text: 'DateModified', datafield: 'DateModified', hidden: true, editable: false, sortable: false },
{ text: 'ModifiedLastBy', datafield: 'ModifiedLastBy', hidden: true, editable: false, sortable: false }
]
});
은 내가이 문제를 해결하기 위해 할 수 있습니다 여기에
이 그리드입니다
오류인가?
감사합니다.