Responsive extension not working with server side anguar way
See original GitHub issueI tried to implement server side angular way with responsive extension. I followed all the steps given in example at Responsive Extension.
But it is not working. I applied class ‘none’ to the first column in ‘th’ of the html. Header column name is hiding but column stay as it is. I also tried with adding columns to the dtoptions.
drivers: Driver[] = [];
this.dtOptions = {
pagingType: 'full_numbers',
pageLength: 10,
processing: true,
serverSide: true,
language: {
infoEmpty: AppSettings.EmptyDataTableMessage,
},
responsive: true,
ajax: (dataTablesParameters: any, callback) => {
let pageOffset = dataTablesParameters.start;
let pageSize = dataTablesParameters.length;
let searchText = dataTablesParameters.search != null ? dataTablesParameters.search.value : '';
this._driverService.getAllDrivers(pageOffset, pageSize, searchText).subscribe(response => {
this.drivers = response;
callback({
recordsTotal: response.length > 0 ? response[0].RecordsTotal : 0,
recordsFiltered: response.length > 0 ? response[0].RecordsTotal : 0,
data: []
});
});
},
};
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11
Top Results From Across the Web
Angular DataTable Responsive Extension not working for ...
i am trying to implement https://l-lin.github.io/angular-datatables/#/extensions/responsive but its not working. have anyone done this ...
Read more >Responsive is not working with Angular 8 implementation
Description of problem: Im using Datatables Angular implementation. It works fine with the defaults options and language style (spanish), but ...
Read more >Responsive Server Side 1264 - StackBlitz
Starter project for Angular apps that exports to the Angular CLI.
Read more >Server-side rendering (SSR) with Angular Universal
A normal Angular application executes in the browser, rendering pages in the DOM in response to user actions. Angular Universal executes on the...
Read more >Angular DataTables - l-lin
Features: · Quick Install · Angular Pipes support · Large dataset support · Advanced Data Filter · Extensions support · MIT.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirm that server side the angular way broke responsive. The @kettunen solution is fine. I’ve another working solution:
TS file:
Template:
@aleperfetti81 your solution is not angular way. it is just server side.