Posted 11 Jan 2013 Link to this post
<
script
id
=
"roiTemplate"
type
"text/x-kendo-template"
>
div
"roi"
class
"span2 offset1 kpi"
p
>#=title#</
input
"text"
data-width
"100"
value
"#=value#"
"dial"
data-readOnly
"true"
/>
</
var
getTemplate = kendo.template($(
'#roi'
).html());
data = { value :
"50"
, title:
"ROI"
};
$(
'#campaign-metrics'
).append(getTemplate(data));
The id of your template is "roiTemplate" yet you call $("#roi") which probably returns nothing. Fix the id of your template.