Hi,
I have deleted a row and saved to the database. But the grid is not refreshing and same with add as well, please see the image below:
Here is my code for save and delete
$("#saveRow").bind({ click: function (e) { $("#Grid").igGridUpdating("endEdit", true, true);
$("#Grid").igGrid("saveChanges", function success() { $('#txtMessage').css('background-color', 'LightBlue').css('color', 'Gray').css('font-weight', 'bold').css('font-family', 'Courier New'); }, function error(jqXHR, textStatus, errorThrown) { //alert(JSON.parse(jqXHR.responseText).ErrorMessage); if (JSON.parse(jqXHR.responseText).ErrorMessage.contains("Success")) { $('#txtMessage').css('background-color', 'LightBlue').css('color', 'Gray').css('font-weight', 'bold').css('font-family', 'Courier New'); // hide the buttons $('#saveRow').prop('hidden', true); $('#cancelRow').prop('hidden', true);
} else { $('#txtMessage').css('background-color', 'DarkRed').css('color', 'White').css('font-weight', 'bold').css('font-family', 'Courier New'); } txtMessage.value = JSON.parse(jqXHR.responseText).ErrorMessage; }); }
});
$("#deleteRow").igButton({ labelText: $("#deleteRow").val(), click: function (e) { var checkstr = confirm('Are you sure you want to delete row(s)?'); if (checkstr === true) { //check if there is an array to delete all selected wors if (rowKeys.length > 0) { $.each(rowKeys, function (ix, el) { //make sure before delete to clear the selection $("#Grid").igGridSelection("clearSelection"); $("#Grid").igGridUpdating("deleteRow", el); $('#saveRow').prop('hidden', false); $('#cancelRow').prop('hidden', false); }); } else if (rowKey !== '') { //check if there is only one row $("#Grid").igGridSelection("clearSelection"); $("#Grid").igGridUpdating("deleteRow", rowKey); $('#saveRow').prop('hidden', false); $('#cancelRow').prop('hidden', false); } else { //else there is no selected rows just the button is clicked alert('No rows selected!'); } rowKeys = []; rowKey = ''; } else { alert('false'); return false; } } });
This site may be a walk-through like the knowledge you wanted concerning this and didn’t know who ought to. Glimpse here, and you’ll absolutely discover it. rent a car in karachi
Escorts in Delhi have finest top class young teens who are seeking for romantic pleasure around Delhi. If you want to become one of them, just meet our Delhi Call Girls to make out with them at anywhere or any time.
Not every Delhi escort agency can provide a dream partner. You will feel fortunate to have landed on Delhi Call Girls page. That is because our agency is a hub for royal and charming ladies. We have young, mature, petite, and busty women in our collection. The horny females are super-friendly and sweet in dealing with customers. Their elegance and curvy bring many imaginations to the mind of clients. Imagine what you can do with such alluring female escorts in Delhi.
The other things that Daman Escorts focus on our punctuality and professionalism. These are the essential attributes that set our ladies apart from other women lots in the city. Experience the finest moments of your life while spending time with our ladies. Grab a passionate girlfriend or entertainer from our Daman escort agency to enjoy tonight wholeheartedly. The elite ladies will come to meet you at your designated place tonight. Call us to book a woman of your choice now.
We are a premier escort service provider in Aerocity. Clients come to us for many good reasons. Escorts in Aerocity can easily provide a dream partner to clients. The irresistible call girls in Aerocity play their roles in entertaining customers perfectly. As a result, you can expect total satisfaction in the session. Even our Aerocity escort services are designed to deliver unforgettable moments to customers.