Hello everyone,
Please, I need your help with this problem that I don’t know how to solve it…
I have a jqxgrid that have a toolbar with an action of AddNewOne, this method work perfectly fine, but the problem is that the object that I get back from the server API is different to the object that I’m showing in the grid, then I need that when I’m doing the add action refresh all the grid to get the new data from the server, I’m trying to do this:
success: function (data) {
if (data.Success == true) {
$(“#lbNotificationSuccess”).text(“Phone Saved Successfully”);
$(“#jqxNotificationSuccess”).jqxNotification(“open”);
$(‘#gvPhoneSchedule’).jqxGrid(‘refreshdata’);
$(‘#gvPhoneSchedule’).jqxGrid(‘refresh’);
$(‘#gvPhoneSchedule’).jqxGrid(‘updatebounddata’);
commit(true);
}
else {
$(“#lbNotification”).text(“An error occured. ” + data.Message);
$(“#jqxNotification”).jqxNotification(“open”);
commit(false);
}
}
I’m using those method for refresh the data, but the grid doesn’t refresh, I have to press F5 the the data appears on the grid.
Please any help with that!!!
Thank you very much!!