2021-05-18
1853
#angular
Kenneth Ekandem
49523
May 18, 2021 ⋅ 6 min read

Using Angular DataTables to build feature-rich tables

Kenneth Ekandem Software engineer with four years' experience in PHP and JavaScript. Currently working as a backend developer for Codekago Interactive.

Recent posts:

Vue logo over a brown background.

A guide to two-way binding in Vue

Learn how to implement one-way and two-way data binding in Vue.js, using v-model and advanced techniques like defineModel for better apps.

David Omotayo
Nov 22, 2024 ⋅ 10 min read
TypeScript logo over a pink and white background.

Drizzle vs. Prisma: Which ORM is best for your project?

Compare Prisma and Drizzle ORMs to learn their differences, strengths, and weaknesses for data access and migrations.

Temitope Oyedele
Nov 21, 2024 ⋅ 10 min read
Practical Implementation Of The Rule Of Least Power For Developers

Practical implementation of the Rule of Least Power for developers

It’s easy for devs to default to JavaScript to fix every problem. Let’s use the RoLP to find simpler alternatives with HTML and CSS.

Timonwa Akintokun
Nov 21, 2024 ⋅ 8 min read
Rust logo over black marble background.

Handling memory leaks in Rust

Learn how to manage memory leaks in Rust, avoid unsafe behavior, and use tools like weak references to ensure efficient programs.

Ukeje Goodness
Nov 20, 2024 ⋅ 4 min read
View all posts

11 Replies to "Using Angular DataTables to build feature-rich tables"

  1. Very useful, Thank you.
    How can we customize the language, from english to french as example ?
    Thanks

  2. ERROR TypeError: Cannot read properties of undefined (reading ‘ext’)
    I got this error in ngOnInit() at $.fn.dataTable.ext.search.push(…

  3. I use a default data as a test…then update de data and it draw properly…. but when I try to filter the data showed is the old data.. It seams that node update the html but not the DOM datatable so the filter follow working with the old data. it look like $().DataTable().rows().data is not updated with the new data…

  4. In Angular 14 and RXJS 7, had to feed this.dtTrigger.next(); the array that contains the response list from the API call, so : this.dtTrigger.next(this.reports); for me, replace this.reports with your custom array

  5. Buttons are not displaying for me.
    ngOnInit(): void {
    this.dtOptions = {
    dom:’Bfrtip’,
    }
    this.fetchData()
    }

    html:

    …..table data……..

  6. Currently, this tutorial is not working. I did it exactly the way you explain it, but
    1- I don’t get the users.
    2- I get a lot of syntax errors.
    3- The table doesn’t even show any style, it just displays the name of the columns.

Leave a Reply