Hi,
I have issue with looping through the list of a models in template. I am binding the below template to listview
Model :
ModelClass()
{
ClassId
ClassName
ClassSize
List<ModelStudents>()
}
ModelStudents()
{
StudName
StudAge
StudGender
List<ModelMarks>
}
ModelMarks()
{
Marks1
Marks2
Marks3
}
A model is passed to the view and I can get the parent element like this. But how to get the collections from the parent element.
<script type="text/x-kendo-template" id="mytesttemplate">
#=ClassId#</br/>
#=ClassName#</br/>
#=ClassSize#</br/>
</script>
I have issue with looping through the list of a models in template. I am binding the below template to listview
Model :
ModelClass()
{
ClassId
ClassName
ClassSize
List<ModelStudents>()
}
ModelStudents()
{
StudName
StudAge
StudGender
List<ModelMarks>
}
ModelMarks()
{
Marks1
Marks2
Marks3
}
A model is passed to the view and I can get the parent element like this. But how to get the collections from the parent element.
<script type="text/x-kendo-template" id="mytesttemplate">
#=ClassId#</br/>
#=ClassName#</br/>
#=ClassSize#</br/>
</script>