How can i add sparkline to kendo grid after the loading process? -
guys wanted know ways of adding sparkline grid after loading,i myself used change event problem after clicking on grid ,sparkline appears!
for clarification ,i've added video regarding project
http://jsfiddle.net/psot98/axmhy/3/embedded/result/
event change grid
change: function (e) { $(".sparkline").kendosparkline({ type: "area", series: [{ name: "world", data: [15.7, 16.7, 20, 23.5, 26.6, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5, 3.5], }, { name: 'new york', data: [0.7, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5], }], }); }
what : http://jsfiddle.net/vojtiik/axmhy/4/embedded/result/ can use databound event, once data loaded , bound - show fancy charts. http://docs.kendoui.com/api/web/grid#events-databound
databound : function (e) { $(".sparkline").kendosparkline({ type: "area", series: [{ name: "world", data: [15.7, 16.7, 20, 23.5, 26.6, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5, 3.5], }, { name: 'new york', data: [0.7, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 4.1, 8.6, 2.5], }], }); }
Comments
Post a Comment