or
<
script
id
=
"country-template"
type
=
"text/x-handlebars-template"
>
<
p
data-country
=
"{{countryId}}"
>{{countryName}}</
p
>
</
script
>
function countriesDropDown(container, options) {
$('<
input
data-text-field
=
"name"
data-value-field
=
"id"
data-bind
=
"value:' + options.field + '"
/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataSource: countries
});
}
<
div id="my" data-template="myTemplate" data-bind="source: SomeSourceThroughJson" ></div>
<script id="myTemplate" type="text/x-kendo-template">
<div class="myTemplateContainer" data-bind="click:CallDraggableFunction" >
<p data-bind="text: Property1" />
<p data-bind="text: Property2" />
</div>
</script>