Pergunta

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

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top