Closed joseserrano15 closed 2 years ago
Hello, I've got the sasme problem here, where you able to resolve?
Thanks
Yes, I could resolve it. You need to use rowCallback.
_renderer variable is private _renderer: Renderer2
I forgot it, the ajax callback must be:
callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp.recordsFiltered, data: resp.data });
Not like the example callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp.recordsFiltered, data: [] });
Can you please give me the url of the original sample?? Thanks in advance
Il Ven 8 Lug 2022, 18:37 jose serramo @.***> ha scritto:
I forgot it, the ajax callback must be:
callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp.recordsFiltered, data: resp.data });
Not like the example callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp.recordsFiltered, data: [] });
— Reply to this email directly, view it on GitHub https://github.com/l-lin/angular-datatables/issues/1657#issuecomment-1179177945, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDZBJWERQGVT6FQNHNAS4DVTBKLRANCNFSM5XFNX4HQ . You are receiving this because you commented.Message ID: @.***>
Server side: https://l-lin.github.io/angular-datatables/#/basic/server-side-angular-way
Original DataTables detail: https://datatables.net/examples/server_side/row_details.html
Hello. I'm trying to implement child rows, but when I use server side its not working because the child data is show bottom the table. If I use static data its work perfectly, only fails with server side. Any idea what could be the problem?
Child row with server side![image](https://user-images.githubusercontent.com/68348356/170786538-32e1726d-4f5d-4b1b-819c-d2512683fa94.png)
Child row with static data![image](https://user-images.githubusercontent.com/68348356/170786708-b58963c0-2726-4f45-9af1-7f95e48f3927.png)
ServerSide code![image](https://user-images.githubusercontent.com/68348356/170786828-1a8cb620-0f20-4200-a99a-5230b2f77c4d.png)