在 Serenity 平台中更改选定行复选框的值
Change selected row checkbox value in Serenity platform
此问题与Serenity平台开发有关。
我有一个使用 __id 作为 idfiled 的网格:
protected getIdProperty() { return "__id"; }
我还为每一行添加了一个复选框:
this.rowSelection = new Serenity.GridRowSelectionMixin(this);
问题是:如何将复选框的值从 __id 更改为使用其中一个列值(例如:StudentID 并不总是唯一的)
谢谢
this.getSelectedKeys().map(x =>
this.view.getItemById(Q.toId(x))
.StudentID).filter(x => x != null)
此问题与Serenity平台开发有关。
我有一个使用 __id 作为 idfiled 的网格:
protected getIdProperty() { return "__id"; }
我还为每一行添加了一个复选框:
this.rowSelection = new Serenity.GridRowSelectionMixin(this);
问题是:如何将复选框的值从 __id 更改为使用其中一个列值(例如:StudentID 并不总是唯一的)
谢谢
this.getSelectedKeys().map(x =>
this.view.getItemById(Q.toId(x))
.StudentID).filter(x => x != null)