作成日: 2024/07/26 最終更新日: 2024/11/06
文書種別
不具合
発生環境
5.20241.9以降のバージョンで発生
状況
修正済み
詳細
childItemsPathプロパティを設定すると、getErrorプロパティに設定した検証エラーが発生しません。
回避方法
この問題はバージョン5.20242.21で修正されました。
修正版を適用しない場合の回避方法は次の通りです。
updateCellを以下のように書き換えます。
let oldFun = wjcGrid.CellFactory.prototype.updateCell
wjcGrid.CellFactory.prototype.updateCell = function (e, t, i, o, n, r) {
oldFun.call(this, e, t, i, o, n, r);
var l = e.grid, a = e.rows, u = e.columns, c = a[t], d = u[i], v = e.cellType, E = wjcGrid.CellType;
var P = l._getBindingColumn(e, t, d), Q = (0 != (r as any) && P) ? e.getCellData(t, i, !1) : null;
if ((v == E.Cell) && l._getShowErrors()) {
var Re: any = "";
!1 === r && P && (Q = e.getCellData(t, i, !1));
var Ee = a[t].dataItem;
Re = P.binding && Ee && P.getIsRequired(c) && (null == Q || "" === Q) ? l._edtHdl._getRequiredMsg() : l._getError(e, t, i, !1);
l._edtHdl._setCellError(o, Re)
}
};