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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -