Hello,
I have the following problem:
I need to disable editing of some cells. For example disable only one, single cell in 20x20 grid, so I can't use neither whole column nor row disabling.
Since in SmartGWT I can't add any handler to cell or row, I added EditorEnterHalnder to whole grid. Then I planned to retrieve from EditorEnterEvent event the clicked cell position and if it's my particular cell, then I can apply one of the following methods:
This partially works. It works when there is already some data in cell. Unfortunately when the cell is empty this method fails.
My question is how to disable cell even if it's empty?
Is there any better way to achieve 'disabled cell' effect?
Thanks in advance.
Kind regards,
Pete
I have the following problem:
I need to disable editing of some cells. For example disable only one, single cell in 20x20 grid, so I can't use neither whole column nor row disabling.
Since in SmartGWT I can't add any handler to cell or row, I added EditorEnterHalnder to whole grid. Then I planned to retrieve from EditorEnterEvent event the clicked cell position and if it's my particular cell, then I can apply one of the following methods:
Code:
myListGrid.cancelEditing(); myListGrid.deselectAllRecords();
My question is how to disable cell even if it's empty?
Is there any better way to achieve 'disabled cell' effect?
Thanks in advance.
Kind regards,
Pete
Comment