Binding the data tables with helpers


Is there a way to bind the helpers(search query is inside this) inside the data table? In my case, both are not synchronized. So sometimes the data table is already there, but the helper is still not loaded, so even when I have data binding later on, the data table shows no data to display on bottom(even when there is data comming from helper) and its sort and search function also doesn’t work.
down below is how I am loading data table.


Is there a way to tackle this ?