Hello.
We own a license for an older version of Kendo UI for jQuery, and we are now testing the latest release (demo version) to decide if we should upgrade.
We have implemented a light/dark/auto mode switch for our application. For Kendo theme, this is achieved by changing the name of the css loaded by the page.
Everything works fine for all widgets except charts. When mode is changed, for example switching from light to dark, all axis labels, lines, background, etc stay the same (light theme). If the page is reloaded (and chart recreated), then the correct mode is applied.
Attached you will find three images showing the behavior: initial light mode, after switch to dark mode, after page reload.
Given for our application reloading the page is not an option, is there a fix or workaround for this behavior?
Calling the redraw method doesn't help.
Thank you.
Hi Paolo,
The Chart must be reinitialized to update its series based on the changed theme.
When you call the function that updates the theme stylesheet, reload the page to reload the Chart, for example:
Regards,
Nikolay