This is a migrated thread and some comments may be shown as answers.

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

2 Answers 34 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 10 Oct 2012, 01:11 AM
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 Answers, 1 is accepted

Sort by
0
Brandon
Top achievements
Rank 1
answered on 14 Oct 2012, 10:19 PM
?
0
Georgi Krustev
Telerik team
answered on 16 Oct 2012, 12:11 PM
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!
Tags
ListView (Mobile)
Asked by
Brandon
Top achievements
Rank 1
Answers by
Brandon
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or