-
Notifications
You must be signed in to change notification settings - Fork 5
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
Resizing the grid will always call the columns formatter #173
Comments
There may be a more clever way to do this. We can detect which cells need to re-drawn (ie. they come into view, they are resized, etc..) and only re-draw the cells affected. |
What i currently dont understand is why it is needed to Fall the formatter
|
DobyGrid doesn't know exactly what you're doing inside your formatter. Maybe you're taking the size of the viewport into your calculation when drawing your cell. In order to accommodate a wide range of use-cases, we force a re-render of the cells during a resize. This is similar to default |
Yes i understand that. But i do know what i am doing so it would be nice to
|
No problem. We can add an option to disable re-rendering during the resize event. |
When i am resizing the grid the formatter of all the cells will be called again. For some (or even most) of my cells this wouldn't be necessary at all.
I'm doing live resizing with the grid containing only one column with a custom formatter which is a complex one. It would be nice if there would be an option to tell the grid "don't call this columns formatter again, when resize has been called on the grid".
Do you think this is possible?
The text was updated successfully, but these errors were encountered: