This is a migrated thread and some comments may be shown as answers.

TypeError: t is undefined when addRow() is called

0 Answers 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 14 May 2018, 10:27 PM

I have a subgrid within which there is a button to add a row (record).

When the button to add a row is clicked, then the below function is called:

 

function vAddRow(e) {
    var grid = $(e.parentElement.parentElement).data("kendoGrid")
    ;
    parentId = grid.element[0].id.split("-")[2];
    grid.addRow();
    console.log("vet add row");
};

 

When this function is called the console shows the error "TypeError: t is undefined ".  From what I can see this error is triggered from the Kendo source within the "addRow" function.

 

I cannot find anything in the documentation that defines what "T" is within the context of addRow.

 

I don't know how relevant it is but the parent grid has the same functionality and does not encounter an error.

 

Any insight would be great!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
James
Top achievements
Rank 1
Share this question
or