angular-ui/ui-grid

Disabling a row doesn't disable cell edit

Open

#5,494 创建于 2016年6月26日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (2,496 fork)batch import
good first issuetype: enhancement

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南