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

Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 14, 2018, 10:43 PM EST
Hari Krishna133 reputationPosted Nov 15, 2018, 11:36 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 15, 2018, 11:41 PM EST