Hi!, i'm trying to use a template into the same template. This is the code:
<script id="nestedTemplate" type="text/x-kendo-template">
<li><b>#: _folderName #</b>
<ul data-template="nestedTemplate" data-bind="source: _folders"></ul>
<ul data-template="filesTemplate" data-bind="source: _files"></ul>
</li>
</script>
json (remote)
{
"_folderName": "Dpto CGE",
"_folders": [
{
"_folderName": "Informes Test",
"_folders": [
],
"_files": [
{
"OriginalPath": "Comparativa de Planificación Mensual con Producción Hasta Marzo 2013.sql"
},
{
"OriginalPath": "Comparativa de Planificación Mensual con Producción.sql"
},
{
"FullPath": "\\\\192.168.10.6\\pfolder$\\jgperez\\Control De Gestión\\Informes Gema\\Obras.xls"
}
]
}
So, the template is calling itself each _folders is found but it doesn't works: : e.bind is not a function
Can i use nested templates with MVVM?
Thanks.