i want call bind method after for loop and ajax call in mvc,callwaiting

Posted by Plhkrishna under ASP.NET MVC on 11/15/2018 | Points: 10 | Views : 238 | Status : [Member] | Replies : 0
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

.net developer


Responses

(No response found.)

Login to post response