When cell editing is attempted in an igGrid, and all the others cells on the same row are read-only, the Done button is disabled even if the current cell has been modified. After a row with more editable cells is edited, then when editing the row with only one editable cell the Done button correct behavior is restored.
All read-only cells are disabled using “editCellStarting” method.
Please check this out here: http://jsfiddle.net/D3uPN/4/
Edit first row and change cell value, “Done” button still disabled.
Cancel and edit second row, press done.
Edit first row, now the “Done” buttons works correct.
Am i doing something wrong, or is this a bug?
Hello Corne van Beek,
Thank you for contacting Infragistics!
We received your support request concerning cell editing in the igGrid, and I have been assigned to assist you with this issue. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of this functionality, and I will be doing testing to see if I can reproduce this behavior. I will get back to you by the end of the day tomorrow with more questions or information for you. In the meantime, please do not hesitate to contact me with more questions.
After reviewing the issue you were having, I believe I have found the cause. It seems your editCellStarting function returning false messes with the Updating feature and causes the behavior you were receiving. Fortunately, this can be avoided by editing the columnSettings of you Updating feature. By setting the columns which you do not want to edit to readOnly, it prevents them from going into edit mode. This allows you to choose which columns you want to have an editor pop up for without the use of the editCellStarting function. I have attached a simple sample which shows this behavior. You will note that in this sample, only one of the cells opens for editing, even though the editMode is row. I hope this clears things up for you. Please do not hesitate to contact me with more questions.