can't add rows to dhtmlx grid

I have a grid set up in the following way

        this.grid.setHeader("Active,Start Date (MM/DD/YYY),End Date (MM/DD/YYY)");
        this.grid.attachHeader("#text_filter,#text_filter,#text_filter");
        //...footer...
        this.grid.setColAlign("left,left,left");
        this.grid.setColTypes("coro,dhxCalendar,dhxCalendar");
        this.grid.enableResizing("false,false,false");
        this.grid.enableAutoWidth(true);
        this.grid.enableAutoHeight(false, 500);
        this.grid.setImagesPath("../Content/");
        this.grid.setDateFormat("%m/%d/%Y");
        this.grid.setColSorting("str,date,date");
        this.grid.attachEvent("onCellChanged", this.onCellChanged.bind(this));

        let isActiveCombo = this.grid.getCombo(this.isActiveColumn);
        isActiveCombo.put("true", this.isActive);
        isActiveCombo.put("false", this.isInactive);

        this.grid.init();

and here is how I’m adding records to the grid.

[code]
setMachineGridData(histories) {
this.grid.clearAll();

    for (let i = 0; i < histories.length; i++) {
        let history = histories[i];

        let activeDescription = "Yes";

        if (!history.isActive)
            activeDescription = "No";

        if (history.endDate === null || !history.endDate)
            history.endDate = '';
        else if (history.endDate instanceof Date) {
        }
        else {
            history.endDate = new Date(this.utilities.replaceDashWithSlash(history.endDate));
        }

        if (history.startDate instanceof Date) {
        }
        else
            history.startDate = new Date(this.utilities.replaceDashWithSlash(history.startDate));

         //activeDescription = "yes" string
        //startDate = Mon Feb 19 2018 00:00:00 GMT-0800 (Pacific Standard Time) date object
        //endDate = "" empty for now
        // machineStatusHistoryID = Guid
        let row = this.grid.addRow(history.machineStatusHistoryID,
            [
                activeDescription, history.startDate, history.endDate
            ]);

    }[/code]

I keep getting the error

Is it being initialized incorrectly? The data is being set after it’s initialized. The grid shows up fine on the page but I can’t add rows to it.

Please, note that you have not defined the “history.machineStatusHistoryID” your setMachineGridData function.
Her is the simplified working example:
snippet.dhtmlx.com/f59e2450d
If the problem still occurs for you please provide a complete demo or a demo link, where the problem can be reproduced.