-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load new column properties after table loaded #172
Comments
These helpers ( $scope.dtOptions = DTOptionsBuilder.newOptions()
.withPaginationType('full_numbers')
.withDisplayLength(2); is the same as writing $scope.dtOptions = {
paginationType: 'full_numbers',
displayLength: 2
}; Can you provide a plnkr or something alike to illustrate your issue? |
I cannot easily do that no. Here's an example of what I'm doing:
When I swap out Is it possible to change this so I'm able to setup I even tried doing:
and
But these didn't work either. |
That's that I'm lookin' for! How can I get a hold of this version right now to test it out? Is it in a stable-enough state? |
It's all on the |
Using that branch as a test, it fails to load any table data from the promise and no errors. Has anything changed other than the removal of the dtOptions.reloadData() function? |
Take a look at the plnkr on my previous post. It's using the |
I spend a long time doing a revamp of my codebase with the newly released 0.4.0 and it still doesn't work as expected sadly :/. I'm getting this to work only part of the time now. Sometimes it works and displays table data with the correct render function, sometimes it does not and shows the data then quickly hides it. The time where it hides the data and shows It appears this happens if I change out the class on one of the columns. If I don't change the class and only change one of them from numbers to currency, then absolutely no change occurs. Have you tried swapping out the render function before and seen how it reacts? |
I'm not quite to understand your issue. Can you modify my previous plnkr to illustrate your problem? |
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 seeangular.extend(options, dtOptions);
. Does this have anything to do with why options aren't mutable after the fact?The text was updated successfully, but these errors were encountered: