[英]enable or disable row editable per row based on condition infragistic grid
I need to make a row editable based on grid data.我需要根据网格数据使行可编辑。 Some rows will be editable and some will not.
有些行将是可编辑的,有些则不能。 I tried cellEditExit/cellEdit event and tried to cancel the event but didn't work.
我尝试了 cellEditExit/cellEdit 事件并尝试取消该事件但没有奏效。
Using (rowEditEnter) and (cellEditEnter) is the correct approach.使用 (rowEditEnter) 和 (cellEditEnter) 是正确的方法。 I am surprised that it didn't worked:
我很惊讶它没有奏效:
<igx-grid [data]="data" height="550px" primaryKey="ProductID"
[rowEditable]="true"
(rowEditEnter)="rowEditEnter($event)"
(cellEditEnter)="cellEditEnter($event)"
...
public rowEditEnter(evt) {
evt.cancel = true;
}
public cellEditEnter(evt) {
evt.cancel = true;
}
You can use this sample and topic as a reference and understand the event cancelation sequence .您可以将此示例和主题用作参考并了解事件取消顺序。
Which version of the product are you using?您使用的是哪个版本的产品? My recommendation is to use the latest version of 11.1.7
我的建议是使用最新版本的 11.1.7
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.