Validate Cell when use childItemsPath

Posted by: anh012868 on 5 June 2024, 8:11 am EST

  • Posted 5 June 2024, 8:11 am EST

    Hello friend i am having a problem when i use childItemsPath my validate function is not working. Before i used version 5.20222.877 it was working fine and then i upgraded version to 5.20241.9 it is not working anymore. can you help me. I hope to get your reply soon because i am in a hurry. I have bought your wijmo key.

  • Posted 6 June 2024, 5:49 am EST

    Hi,

    A recent update in the ‘updateCell’ (internal method) seems to be causing this issue. We have forwarded this issue to the dev team for further investigation with internal tracking ID - WJM-34036. We will update you as soon as we have an update from the dev team.

    For now, to avoid this issue you can use the following workaround -

    import * as wjGrid from '@grapecity/wijmo.grid';
    
    let oldFun = wjGrid.CellFactory.prototype.updateCell
    wjGrid.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 = wjGrid.CellType;
        var P = l._getBindingColumn(e, t, d), Q = (0 != r && P) ? e.getCellData(t, i, !1) : null;
    
        if ((v == E.Cell || v == E.RowHeader) && l._getShowErrors()) {
            var Re = "";
            !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)
        }
    }

    Please refer to the following sample for the same - https://jscodemine.mescius.io/share/25LlchinuEmXmsvoCAnNyA/

    Regards

  • Posted 8 June 2024, 10:07 pm EST

    Thanks for your solution, I hope the development team will update this version soon. I will follow up. Thank you very much

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels