-
Alan
5
posts
Member since:
Apr 2012
Posted 19 Jul 2012
Link to this post
I have a listview that was filling fine until I changed the template to include and <a href="jj"> tag. If I remove the href the listview fills. Is this a bug or is there a workaround?
Sample Code:
The following works and fills the listview as expected:
<script id="department_template" type="text/x-kendo-tmpl">
<li><a onclick="GetCategoriesFor('${Value}')">${Value}</a></li>
</script>
If however I add an href (this is the ONLY change made in the page) it fails to fill the listview
<script id="department_template" type="text/x-kendo-tmpl">
<li><a href="#categories" onclick="GetCategoriesFor('${Value}')">${Value}</a></li>
</script>
-
-
Alan
5
posts
Member since:
Apr 2012
Posted 20 Jul 2012
Link to this post
I found the issue with this.....All that was required was to "escape" the # tag
<script id="department_template" type="text/x-kendo-tmpl">
<li><a href="\
#categories" onclick="GetCategoriesFor('${Value}')">${Value}</a></li>
</script>
-