Placing a link around a listview item created by a template?

3 posts, 0 answers
  1. Brandon
    Brandon avatar
    8 posts
    Member since:
    Sep 2010

    Posted 09 Oct 2012 Link to this post

    I've been following the samples and I have a template. As soon as I wrap my template items in an <a href="#settings"></a> I receive the error: 

    Uncaught Error: Invalid template:'
            <a href="#settings">
                <img src="img/drink.png" />
                <h2>#: data #</h2>
            </a>
        ' Generated code:'var o,e=kendo.htmlEncode;with(data){o='\n        <a href="';settings">
                <img src="img/drink.png" />
                <h2>;o+=': data ';</h2>
            </a>
        ;o+=;}return o;



  2. Brandon
    Brandon avatar
    8 posts
    Member since:
    Sep 2010

    Posted 14 Oct 2012 Link to this post

    ?
  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 16 Oct 2012 Link to this post

    Hello Brandon,

     
    The "#" symbol is part of the template syntax and you need to escape it. Check this help topic for more information.

    Kind regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top