Hello! I am trying to have a button that adds a row on a grid, that is in GridEditMode.PopUp. However, this button is outside of the grid. Right now I have this:
$("#add").click(function () { var grid = $("#grid").data("kendoGrid"); if (grid) { var dataSource = grid.dataSource; var total = dataSource.data().length; dataSource.insert(total, {}); dataSource.page(dataSource.totalPages()); grid.editRow(grid.tbody.children().last()); } return false; });but this only displays my popup for a second, before it disappears. If I remove "return false;", the page reloads (as expected). How can I achieve the solution?
Thanks,
Manuel