Ajax call in ColumnDefs
Ajax call in ColumnDefs
Godrules500
Posts: 25Questions: 13Answers: 0
Is there a way to do an ajax call in the ColumnDefs?
So the circumstance that I am in, I pass an ID to the view, then I need to, when it is rendering the value, do an ajax call so that I can get the description that belongs to the ID, so that I can display it as well.
Is this possible?
This discussion has been closed.
Answers
Yes it is. I did it by calling a function that sets a global variable. In the function you do your second or other Ajax Call
That doesn't work for me unfortunately. Description is still undefined because render finishes before the ajax call is called.
Any other ideas?
I'm using an MVC 5 application