angular-ui/ui-grid

Disabling a row doesn't disable cell edit

Open

#5494 aperta il 26 giu 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
good first issuetype: enhancement

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Have an issue on gridOptions.isRowSelectable. I see that though the row is disabled for select, the cell edit still works on it. I couldn't find for an option where I can disable the row completely. colDefs.cellEditableCondition doesn't seem to work on data, i.e., based on the value of a cell in a row, enable/disable cell. Am I missing something here? Is there a straightforward way to dynamically achieve complete row disable (select and edit)? If no (I searched and couldn't find), then I feel this is a bug and isRowSelectable=false should override cellEdit and disable cellEdit as well.

I created a plunker from the original example for row selection. The moment I add ui-grid-cellNav ui-grid-edit ui-grid-row-edit, row select option seems to be overridden. I feel it should be the opposite as I have explained above. http://plnkr.co/edit/y3ZwcJTrFzl9ApRuNmyg?p=preview

Note: Click on Set Selectable button in the example for the row selection condition to set in.

Guida contributor