-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
OnRender Event handler #597
Comments
Yes, HOT rerenders whole table after cell is scrolled. Your problem should not be addressed with a callback but with cell renderers. Learn more about cell renderers here: http://handsontable.com/demo/renderers.html Anyway, Handsontable 0.9.0-beta1 adds new callback I will close this ticket when version 0.9 goes out of beta. |
Thanks for the feedback. I had a look at cell renderers and i use them quite a bit but they didn't quite serve this particular purpose. let me checkout the 0.9 branch and do some testing. |
Indeed cell renderer was not enough? If you want to change background color of a cell, based on the value of another cell, you can call |
Please correct me if i am wrong but i believe you cannot use the cell renderer when the cell data you want to base on to color other cells is entered by the user after the table has been rendered. |
@oloo - here you got example how to refresh cell renderer: #646 (comment) |
@oloo - well, the table is rerendered after each data change - so you can. If not, you can always force rerendering using "render" method. |
Ah rerender should do the trick. Thanks
|
Handsontable 0.9.0 now features a new More about new events here: https://github.com/warpech/jquery-handsontable/wiki/Events |
i am trying to customize the background color of particular cells basing on values entered in other cells . This seems to work but the coloring is lost when i scroll across the table (i have horizontal scrolling enabled). I believe the table is re re-rendered each time a user scrolls so i think it would be possible to reset the background coloring with an OnRender event handler. Is there such a provision?
The text was updated successfully, but these errors were encountered: