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
70
Disable cell editing based on the value of another cell in the row
posted

Dear Ladies and Gentlemen,

I am new to ignite controls and I'm trying to disable cell editing of cell A in the Moment a specific value is set in cell B in the same row.

After disabling cell A, I want to ensure that TAB Navigation simply ignores the cell when stepping through the row and continues to the next editable cell.

I tried using editCellEnded Event for cell B:

positionTable_editCellEnded = function (evt, ui) {

switch (ui.columnKey) {

case "productNumber":

var cell = $("#positionTable").igGrid("cellById", ui.rowId, "description");

var editor = $("#positionTable").igGridUpdating("editorForCell", $(cell));

editor.igEditor("option", "readOnly", true);

break;

default:

break;

}

};

Does anyone know, how to do this?

Thanks a lot!!