質問

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

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top