Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Changing dtOptions or dtColumns after changeData() gives errors and shows old data #359

@RoelRoel

Description

@RoelRoel

I have a dropdown where you can select an user as a filter for my datatable. When you select "All users" I want to show the column "user" in the datatable but when you selected an specific user that column is not relevant.

I tried updating the options before and after my $scope.dtInstance.changeData() call. But I allways get these errors:

TypeError: Cannot read property 'mData' of undefined
at HTMLTableCellElement. (jquery.dataTables.min.js:88)

TypeError: Cannot read property 'parentNode' of null
at jquery.dataTables.min.js:126

I use the promise way of loading data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions