Hello-
I am having an issue accessing my ICollection <Image> Images in the ClientTemplate. It is accessible from the kendo datasource, but not in the ClientTemplate script; however, all of other variables of a different type from my class are accessible. The Image class has a member of type string called "name". My script to access that variable is below. When I load this page, the ListView comes up empty.
<script type="text/x-kendo-tmpl" id="template"> <div id="product"> <dl id="itemDetails"> <dt>ImageName:</dt> <dd>#:Images[0].Name#</dd> </dl> </div></script>
How I successfully access the variable from the dataSource:
function x () { var index = this.select().index(); var dataItem = this.dataSource.view()[index]; $("#ImageName").html(dataItem.Images[0].name);}
How does my syntax need to change to access it in the ClientTemplate script?
Thank you for the help,
S
