how do i wait for the new ajax data from the server before calling the function to generate dropdown
how do i wait for the new ajax data from the server before calling the function to generate dropdown

im following the code similar to this to implement the column filtering to be dynamic but with select2
http://live.datatables.net/cusologu/7/edit
but for some reason when the columns gets refreshed, the data is using the previous search data
how do i wait for the new search results to come back before calling the createDropdown(api) function?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
alright i figured it out
do not call
createDropdowns(api);
in the on change function but change the
initComplete: function()
to drawCallback: function()
Thanks for posting back - yes that sounds good to me.
Allan