How can I put kendo sparklines in all rows? -


i put sparklines in column usage, has 1 row, how can put rows in column usage?

i put of code relating usage column

jsfiddle code

columns: [{          {         field: "usage",         title: "usage",         template: '<span id="sparkline"style="line-height: 60px ; padding: 0 5px 0spx ; text-align: center" ></span>'     }, {         command: ["edit"],         title: "&nbsp;"     }],     editable: "popup",  }); 

thank you

the problem use id in template: id must unique.

change id class

template: '<span class="sparkline"style="line-height: 60px ; padding: 0 5px 0spx ; text-align: center" ></span>' 

and in initialization use:

$(".sparkline").kendosparkline({...}); 

instead of:

$("#sparkline").kendosparkline({}); 

see here : http://jsfiddle.net/onabai/72kup/embedded/result/


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -