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