Ms_ Dev

Ms_ Dev

  • NA
  • 236
  • 92k

To dispaly Custom Text when no records are found

Feb 20 2017 12:03 AM
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)