Question

I am using a Kendo UI dataviz bar chart. Currently the graph loads when the page loads. How do i change it to load on a button click instead?

The code is shown on the site, http://demos.kendoui.com/dataviz/bar-charts/local-data.html

Était-ce utile?

La solution

You can trigger it off a button click with relative ease using jQuery. Here's a sample: http://jsfiddle.net/latenightcoder/6jyKT/1

You might want to go through a tutorial on jQuery basics in case other such similar questions come up. I've listed one such tutorial here: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top