Skip to content
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

Made autoSizeColumns() to work with cells headers #855

Closed
wants to merge 4 commits into from

Conversation

mpetkov
Copy link

@mpetkov mpetkov commented Apr 22, 2016

Added support, inside the autoWidthCalculator, to calculate the width based on the header as well as the cell.

Marin Petkov added 2 commits April 21, 2016 16:57
…th based on the header as well as the cell.

- Moved field definition from the ColDef interface to the AbstractColDef interface since we will need to access it.
- Converted the headerElements, inside the headerContainer, to be an object so that we can find a specific element by id.  This is exactly the same functionality that is used in the RendererRow class.
- Added a getCellForCol function, inside the headerContainer, so that we can get the header html element for a specific column.
- Added a getHeaderCelForColumn, inside the headerRnderer, to get a specific html element for a column.  This is exactly the same functionality that is used in the rowRenderer class.
…l or not. If it is null, it will not generate the clone to avoid errors.
@ceolter
Copy link
Contributor

ceolter commented Apr 26, 2016

interesting. thanks. will take a look when i get a chance.

@mikeerickson
Copy link

+1 Yes Please :-)

@arkon
Copy link

arkon commented Jun 10, 2016

Any update on this? Seems like an obvious feature to have.

@ceolter
Copy link
Contributor

ceolter commented Jun 12, 2016

Any update on this? Seems like an obvious feature to have.
=> yes, i plan to get it in. just very busy with pivot right now. i'm hoping to include this in the next release.

@adduss
Copy link

adduss commented Jul 4, 2016

@ceolter when you are planning to release next version ?

@ceolter
Copy link
Contributor

ceolter commented Jul 12, 2016

it didn't make release v5 :( i'm hoping to look at this tomorrow, before i go on my holidays the next day :( . . . . this is probably the feature i want most in the grid from all the small requested features.

@ceolter
Copy link
Contributor

ceolter commented Jul 13, 2016

i have now implemented this. will be releasing later today. i didn't take the PR as a lot of code has changed (around how the headers work) since this PR was created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants