Finally, I found the answer here: https://datatables.net/forums/discussion/71938/loop-with-columns-searchpanes-options