I needed to append a new row to a kendo grid at the bottom, on pressing a button but I have a template defined for one of the columns and getting error in that template saying "Cannot read property 'replace ' of undefined".
Here is the code that i am trying to use for the above operation:
var dataSource = grid.dataSource;
var total = dataSource.data().length;
dataSource.insert(total, {});
dataSource.page(dataSource.totalPages());
grid.editRow(grid.tbody.children().last());
I want the new grid in editable mode.Any kind of help please