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.

Can't load new column properties after table loaded #172

@Sawtaytoes

Description

@Sawtaytoes

Is there a way to reload column properties after the table's been loaded?

I've got tabs setup in my project and when clicking a tab, it sends a new data object in the resolve of a promise. The issue is when clicking one of the tabs, the render function on one of the columns changes, but it's not being run to show currency instead of numbers.

I noticed you could do $scope.dtOptions.fnPromise = () like you did here: https://l-lin.github.io/angular-datatables/#/dataReloadWithPromise. But I believe the intended way is $scope.dtOptions.withFnPromise(). This is important because if you can do that, then there must be some way to modify the column properties after the table's loaded such as $scope.dtOptions.aoColumns = table.columns.

In angular-datatables.js:420, I see angular.extend(options, dtOptions);. Does this have anything to do with why options aren't mutable after the fact?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions