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
columns: [{ { field: "usage", title: "usage", template: '<span id="sparkline"style="line-height: 60px ; padding: 0 5px 0spx ; text-align: center" ></span>' }, { command: ["edit"], title: " " }], 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
Post a Comment