server side integration does not draw the records fetch to datatable it is resolved by this.rerender() but it cant be put inside the ajax response
html code is

typescript code is

datatable result can be like that

no matching records as there are records i know it needs to this.rerender but what is the right place to do so or is there any other way
Did you try to put this.dtTrigger.next() after that.allMembers = resp.data["original"]["data"] ? That solved the issue for me.
@FaithFeather bro i did it and i get error


@FaithFeather when do it like this it keeps processsing data loads and reproces load and reproces data is reflected in datatable but its keep on calling api

Looks like it's a common issue ; i put a stackblitz with the code from the documentation and, well, no-data-available is happening. So best is to wait and see a tip from @l-lin. Didn't saw it before, but there's already a ticket about this issue (#1284). You can also skip the ajax way and do it with plain angular way. I think you should also format your ticket in the template asked, 'cause else it will be flag for it.
The "No matching record found" can be hidden with CSS. A bit "hackish", it's a workaround (see this comment).
That's why there is the following code to "compensate":
<tbody *ngIf="persons?.length == 0">
<tr>
<td colspan="3" class="no-data-available">No data!</td>
</tr>
</tbody>
Check this example. If it's still not sufficient to fix your issue, then please fork it and modify it to reproduce your problem.
The "No matching record found" can be hidden with CSS. A bit "hackish", it's a workaround (see this comment).
That's why there is the following code to "compensate":
<tbody *ngIf="persons?.length == 0"> <tr> <td colspan="3" class="no-data-available">No data!</td> </tr> </tbody>Check this example. If it's still not sufficient to fix your issue, then please fork it and modify it to reproduce your problem.
With this workarround, I can't use pagination, because datatables shows 0 of 0 records yet...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to inactivity. Please feel free to re-open the issue to add new inputs.