Ngx-datatable: Column width to auto-adjusting depending on column content

Created on 28 Jun 2017  路  41Comments  路  Source: swimlane/ngx-datatable








I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
Column width are not automatically set depending on row values.

Expected behavior
I would like the column width to auto-adjust depending on the column content.

Most helpful comment

@jisheedpdm No, I made my own table...

All 41 comments

I would like it too!

+1

+1 for auto-adjust. I think it should include options for min-width and max-width to play well with other columns auto-resizing as well.

@clemtoy
Did you find any solution for that??
We also need auto-adjust..

@jisheedpdm No, I made my own table...

Any hint on how to do this?

@Rombusevil I as well did my own table. Just start simple. Try to do module with component. ngFor columns and rows. Do simple styling and functionalities. If you find lost you can always refer to this project's code. It is well written. I found and learned a lot of useful stuff.

+1

+1

+1

+1

+1

+!

+1

+1

+1

any news about this feature? thanks 馃憤

+1

+1

Any update on this?

any update on this bug?

+1

+1

+1

+1

Any updates?

No updates since beginning of 2017? :(

+1

Sup guys. Here's a demo of how I am doing it in my application. This is a light example of the wrapper we built around this library. https://stackblitz.com/edit/angular-wvnfmn. That stuff could be easily added into the library itself.

please provide updates on this issue, thanks.

+1

for the love of god no one didn't notice that for three years ?

+1

+1

+1

+1

Yeah... still nothing, huh?

Yeah... still nothing, huh?

I switched the table component because of that

Yeah... still nothing, huh?

I switched the table component because of that

I don't afford it at the moment, so I implemented a bootleg solution for now...

How is this not a core feature, since it's one of the most basic functionalities of a table in a HTML page that has existed since the dawn of browsers.

I can honestly understand that since this library uses vertical and horizontal virtual scrolling, it's not an easy task,

27/03/2021? any solution? No update avaiable for issue?

This has been most likely abandoned, shame.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DethAriel picture DethAriel  路  3Comments

IngoManthey picture IngoManthey  路  3Comments

alceucardoso picture alceucardoso  路  3Comments

Csirme picture Csirme  路  3Comments

mmrath picture mmrath  路  3Comments