Hi ALL,
I want to display custom message " NO RECORDS" when user deletes all data entries from the grid.
Javascript CODE-
- function Delete(altId) {
- var ctrlDeleteId = '.deleteAl' + alertId.toString();
- if (confirm('Are you sure you want to delete it?')) {
- $.post('Update.ashx', { AltId: altId, actionType: 'delete' }, function (data) {
- if (data === 'Success') {
- $(ctrlDeleteId).closest("tr").hide(300, function () { $target.remove(); });
- }
- });
- }
- };
thanks,