I am using angular datatable(1.10.19). ref this:
http://l-lin.github.io/angular-datatables/#/basic/server-side-angular-way I have written web api in c# to get the data in desired format. With following dtoptions, server side is working fine. dtOptions = { pagingType: 'full_numbers', pageLength: 10, processing: true, serverSide: true, orderCellsTop: true, ajax: (dataTablesParameters: any, callback) => { this.mainpageservice.GetPaginatedData(this. menuID, this.UserName, dataTablesParameters) .subscribe(resp => { this.Module = resp.data; console.log('serverside', this.Module); callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp. recordsFiltered, data: [], }); }); }, Now, I want to display multiple tables that too using serverside angular way datatable. so to achieve this, I am using: http://l-lin.github.io/angular-datatables/#/advanced/multiple-tables as documented, I have created one function which is returning Datatable settings. But here ajax call is not working. Can anyone suggest where I am doing wrong?. private buildDtOptions(menu: number, Username: string): DataTables. Settings { alert('call'); return { pagingType: 'full_numbers', pageLength: 10, processing: true, serverSide: true, orderCellsTop: true, ajax: (dataTablesParameters: any, callback) => { console.log(dataTablesParameters); this.mainpageservice.GetPaginatedData(menu, Username, dataTablesParameters).subscribe(resp => { this.Module = resp.data; console.log('serverside', this.Module); callback({ recordsTotal: resp.recordsTotal, recordsFiltered: resp.recordsFiltered, data: [], }); }); } }; } -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.