Use ajax not working in views block displayed programmatically
I found the solution

To have the "use ajax" working, you have to render the view using:

$view-&gt;set_display('block_1');
print $view-&gt;preview('block_1');