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

Re-rendering of Grid doesn't clear previously embedded styles #10

Closed
McWatt opened this issue Feb 1, 2013 · 2 comments
Closed

Re-rendering of Grid doesn't clear previously embedded styles #10

McWatt opened this issue Feb 1, 2013 · 2 comments

Comments

@McWatt
Copy link

McWatt commented Feb 1, 2013

I'm re-rendering a Grid with new data and the embedded styles are not be re-generated. This is causing a bug where the column header widths are getting lost if the new grid has more columns (the additional column headers that is).

My workaround is to remove the generated style element before each re-render, but if this is something that could be done internally, that would be better.

@mmurph211
Copy link
Owner

Have you tried calling the cleanUp() method on the grid instance object prior to creating a new one? That should reset any styles.

@McWatt
Copy link
Author

McWatt commented Feb 4, 2013

Thanks, that did the trick!

@McWatt McWatt closed this as completed Feb 4, 2013
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

No branches or pull requests

2 participants