title: Kendo Template onClick in element does not work
body: <pre><code>&lt;script type="text/x-kendo-template" id="logotemplate"&gt;
      &lt;div &gt;
          &lt;h3&gt;#: name#&lt;/h3&gt;
           # for (var i=0; i&lt; options.length;i++) { #
               &lt;img src="#= options[i].url #" class="item-photologos" onclick="clickedImage(name,i)"   /&gt;
           # } #
      &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I have a custom Kendo Mobile Listview template. The images show up as expected, but the onclick doesnot fire and no errors are seen in the logs.  I have tried many different combinations of #: #, ##, #= #, etc around the onclick method, but doesnot work (in some of these cases, i see error messages like "i is not defined").  Help will be appreciated.</p>