Hello, need a little help here.
For example, I have 4 column (A, B, C, D). If I want to edit, user only can edit column D. But if user add row, all column can be fill in.
How can I achieved that with IgniteUI 2016.2 and ASP.MVC 5 ?
Hello Johnson,
You can achieve this on editCellStarting event, where you can check whether the operation is rowadding or editing and based on that to cancel the event. For example:
editCellStarting: function(evt, ui) { if(ui.rowAdding) { return true; } else { if(ui.columnKey == "ProductID" || ui.columnKey == "Name") { return false; } } },
Attached is also a sample for your reference.
If you have any further questions, please let me know.
Regards,Tsanna
Tsanna"] Hello Johnson, You can achieve this on editCellStarting event, where you can check whether the operation is rowadding or editing and based on that to cancel the event. For example: editCellStarting: function(evt, ui) { if(ui.rowAdding) { return true; } else { if(ui.columnKey == "ProductID" || ui.columnKey == "Name") { return false; } } }, Attached is also a sample for your reference. If you have any further questions, please let me know. Regards,Tsanna
Done button become disabled with this solution when editing data in Row mode. Maybe because I allow all column to be added, but only 1 column I enabled to edit. Any solution?
nicee. it works. Thank you!!