Hello,
After editing data using pop-up window, grid’s cell value becomes empty. This happens when only specific datafields are being edited and submitted as rowdata. Those datafields not included in the rowdata became empty in the grid.
Is there a way to handle this problem?
In the example below, datafield price became empty after editing. In the rowdata submitted price (intentionally no include in the form) is not included.
columns: [ { text: 'First Name', datafield: 'firstname', width: 100 }, { text: 'Last Name', datafield: 'lastname', width: 100 }, { text: 'Product', datafield: 'productname', width: 190 }, { text: 'Quantity', datafield: 'quantity', width: 90, cellsalign: 'right' }, { text: 'Price', datafield: 'price', width: 90, cellsalign: 'right', cellsformat: 'c2' } ] $("#Save").click(function () { if (editrow >= 0) { var row = { firstname: $("#firstName").val(), lastname: $("#lastName").val(), productname: $("#product").val(), quantity: parseInt($("#quantity").jqxNumberInput('decimal')) }; var rowID = $('#jqxgrid').jqxGrid('getrowid', editrow); $('#jqxgrid').jqxGrid('updaterow', rowID, row); } });
Thank you,
Dan Fad