3
Answers

To dispaly Custom Text when no records are found

Rp Singh

Rp Singh

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