Hari Krishna

Hari Krishna

  • NA
  • 129
  • 47.8k

call waiting in ajax call in asp.net mvc4 for bind method

Nov 15 2018 3:00 AM
Hi team,
I am working on asp.net mvc application ,in this i want to call the grid filling method after completing ajax call
within forloop,
$("#btnYesDlg").click(function (e) {
$('#tblDetails tbody tr').each(function (i, row) {
$.ajax({
url: expenseUrl,
dataType: 'json',
contentType: 'application/json',
type: 'POST',
success: function (response) {
});
})
}):
bindgridDetails();//now i am to call grid binding server side method window.location=url;
})
my bindgriddetails method should wait for completing for loop and ajax call completed
can any one reply pls

Answers (3)