650 questions
1
vote
1
answer
143
views
How to reorder columns in data table?
I want to have the columns to be able to be reordered or moved around for a data table. The code implemented isn't working. Any time I try to reorder a column the column either gets stuck when trying ...
0
votes
0
answers
109
views
Getting an Error in Angular: Cannot find namespace 'DataTables '
I pulled an Angular 11 project
and after installing the node modules, getting error during npx ng build:
Error: node_modules/angular-datatables/src/angular-datatables.directive.d.ts:31:25 - error ...
2
votes
1
answer
598
views
Angular using DataTables error while importing DataTables.Settings
I am trying to use DataTables with Angular to view some data in my application.
I installed DataTables by ng add angular-datatables and imported the DataTablesModule in the app.module.ts but when I ...
0
votes
1
answer
46
views
If the selected record is on the 2nd page of the Angular Data Table, can we navigate to that page by default?
I have an Angular Data Table that displays a list of organizations. It shows a maximum of 5 organizations per page. However, the default selected organization index is 7, which means it is on the 2nd ...
0
votes
1
answer
363
views
dtTrigger not working with Angular Datatable
Angular Datatable is working fine, but When I include [dtTrigger]="dtTrigger" on table component then Datatable is getting removed from the table.
After removing [dtTrigger]="dtTrigger&...
0
votes
1
answer
121
views
Missing Search and Pagination Features in Angular DataTable When Using Custom Spinner with REST API"
I'm using a spinner in my Angular data table to indicate that data is loading. Despite having a large dataset, the default features for "Searching," "Pagination," and column ...
1
vote
0
answers
81
views
Align the button to the right in Databtables
I have a button to export the table in to csv file , it should be aligned to the top right of the data table, but I am not able to align it to right
If I inspect , I see a class dt-buttons , if I ...
1
vote
1
answer
2k
views
Angular 16 with datatables
I'm learning Angular, so currently I'm consuming one endpoint of CoinGecko and I just want show the list using datatables, so this is my code:
<div class="w-3/4 mx-auto mt-5">
<...
1
vote
0
answers
245
views
How to dynamically bind columns in Angular datatable with API response
Angular datatable make columns dynamic
I have tried to setup datatable with options. the issue is I called api and bind data in table but I cant able to bind column in attribute "columns"
ts ...
1
vote
0
answers
152
views
Add checkboxes and multi-select-dropdown in angular-datatables v8.0.0
Facing issues with implementing checkboxes and multi-select dropdown in angular datatables.
npm package angular-datatables: 8.0.0
Trying to create checkbox and ng-multiselect-dropdown column in ...
0
votes
0
answers
749
views
Rerender angular Datatable , Getting all the records
I have a Angular application with a simple CRUD functionality. I have tested my data with static table and this works. Now I am using a data table framework called Angular data table.
I am reloading ...
0
votes
1
answer
185
views
Set the MatCellDef iterator for a specific JSON such that the matsort and matsearch work in a matTable
So I have a JSON Of the following Format:
{
"loan": {
"loanKey": 6575,
"poolNum": "300801056",
...
2
votes
0
answers
401
views
Lazy Load ng-template inside of a Angular DataTable
I currently have a nested component inside of a td cell of an angular datatable. I use this nested component to design card layout as a one large cell. I want to use the built in paging, sorting and ...
0
votes
1
answer
469
views
Angular JSON pipe with angular-datatables
I'm using angular-datatables to display NoSQL de-normalized data in grid for visualization purpose,
I have few complex nested json objects and wanted to display specific cell with prettified json with ...
0
votes
1
answer
896
views
Angular Datatables export buttons using cached data
I'm running an Angular 13 application that queries an API for employees in a given country and office/branch from a form, then displays the list in a table.
I'm using angular-datatables for the table, ...
1
vote
0
answers
107
views
Angular 8 @angular/core/core"' has no exported memberafter installing angular-datatables
I have installed angular-datatables after adding reference into my component. I run the ngServe and got an error message:
ERROR in node_modules/angular-datatables/src/angular-datatables.directive.d.ts(...
0
votes
0
answers
137
views
$(...).DataTable is not a function in angular 8
I am trying to bind datatables in angular8. But search, sort and pagination are not binding to the datatable and i am getting an error like $(...).DataTable is not a function. I also deleted ...
4
votes
5
answers
9k
views
facing error while using angular-datatables
I'm on ubuntu 20.04, with npm 6.14.15, node v14.17.2 and Angular CLI: 11.2.14. I tried to create data table into my working directory using angular-datatables module.
in order to use this angular-...
1
vote
0
answers
454
views
Add Custom html elements to Angular Datatable DOM using JQuery
I am trying to add few buttons to Datatable DOM following legacy way.
Here is my Datatable Options
ngOnInit(): void {
this.dtOptions = {
pagingType: "full_numbers",
...
1
vote
1
answer
3k
views
How to use DOMSANITIZER(bypassSecurityTrustUrl) while calling the API
Getting XSS vulnerabilities while calling the API for fetching the data. So trying to add DOMSANITIZER, but its failing. Tried below code, please suggest me the solution.
this.http.get(this....
0
votes
1
answer
1k
views
Setting global configuration for angular datatables
I'm a little new to angular and was wondering how I can set the global configuration for datatables. Currently it seems I can only set it within each component that need to use it, but this is clearly ...
0
votes
0
answers
368
views
ngx-datatable sorting is not working correctly
Hi i'm facing a strange problem and i was wondering if you could provide any explanation that could help me.
In my datatable i'm displaying a string that can be either "O titres" or "...
1
vote
0
answers
640
views
Format the output of excel download data in angular datatable
I'm trying to download the data in the angular datatable. The download does work but I'm stuck in a situation where I have an array of data for a column and I'm only showing the first index data, the ...
1
vote
1
answer
512
views
angular-datatables works locally but not in production
I added angular-datatables to my project and customised my table. It works perfectly served locally but when I put it on the production server all the customisations are gone - no scrollbars, no ...
0
votes
0
answers
735
views
Angular DataTable - Date Time column sort issue
I am using Angular DataTable where I am trying to sort the dates(YYYY-MM-DDTHH:MM:SS) and I have transformed them using date pipe into this dd/MM/YYYY hh:mm a format. but it is not sorting the dates ...