I am trying to make my column read only in edit mood but when key in the spare row (new row) the read only column should be able to accept the input value.
Can anyone please advise on this?
Thanks you.
I am trying to make my column read only in edit mood but when key in the spare row (new row) the read only column should be able to accept the input value.
Can anyone please advise on this?
Thanks you.
Hi @stan.leong
Idon’t know if you’re using columns or not so I gave readOnly: true
option to all cells and then load a renderer. This renderer if he gets the last row makes it editable.
Here’s a demo : http://jsfiddle.net/handsoncode/dnnkkgy3/
Yes, This solved my problem.
Thanks a lot
I am following you way and put the renderer into columns,
but when deal with check box it will never enable it back.
Hi @stan.leong
I think that this issue is related to this bug: https://github.com/handsontable/handsontable/issues/3527 as when we would want to switch the situation (make cells readOnly inside a renderer and false by default) we can edit all checkboxes: http://jsfiddle.net/pttkxnmo/ which is also a bug.
The same situation is when we want to use cells
instead of a custom renderer. Example: http://jsfiddle.net/a1tqw1wx/
I though that we can create a workaround by blocking an action on a checkbox but suddenly I found that there’s a bug there - we can use the checkbox even if it should be blocked.
I reported this on our Github board: https://github.com/handsontable/handsontable/issues/3540
Currently I couldn’t find any workaround for this issue.