Hi! I add record to database using Ajax. How do I refresh the grid (used Urladaptor) after that?
In EJ1 I used grid.refreshContent:
..........
$.ajax({
url: "Admin/Role_Add",
type: "POST",
beforeSend: function (xhr) {
xhr.setRequestHeader("XSRF-TOKEN", $('input:hidden[name="__RequestVerificationToken"]').val());
},
data: { roleName: inputText }
}).done(function (data) {
gridRoles.refreshContent();
});
In EJ2, refreshContent seems not working
Thanks.