Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
setCellValue of hidden column during filling a new row
posted

Hello,

we enter some number into a cell and at leaving this cell, we fire an ajax request to autocomplete some cells in this row. this works good for existing rows (rowid exists on tr data-id) and also for new rows (no row id).

our setValue wrapper for existing and new rows:

setCellValue: function (gridId, rowId, colKey, value) {
if (rowId == undefined || !rowId || rowId == "") {
$("#" + gridId).igGridUpdating("editorForKey", colKey).igEditor("value", value);
} else {
$("#" + gridId).igGridUpdating("setCellValue", rowId, colKey, value);
}
}

problem: we also need to set values to hidden columns. this works, if the hidden cell is not in a new row, an id exists. writing into a hidden cell using "editorForKey" does not work, because there is no editor for a hidden cell.

any idea how to resolve this issue? we prefer nice solutions :) (without setting some global stuff and setting cell at rowEditingEnded or so.. :) )

thanks in advance.

Parents Reply Children
No Data