在kendo ui网格中创建超链接

在kendo ui网格中创建超链接

问题描述:

我在网格中创建了一个超链接。当我点击链接时,它会导航到localhost / link并显示未找到的资源。我想要的是,如果我点击链接那么它必须直接导航到新页面。我可以这样做吗?

我的语法是:template:# = WebsiteLink#

i have created a hyperlink in the grid.when i click on the link it is navigating to localhost/link and displaying resource not found.what i want is,if i click on the link then it has to directly navigate to the new page.how can i do this?
my syntax is:template:"#= WebsiteLink #".

这可以通过模板轻松完成。



假设下表结构:

This can be accomplished quite easily with templates.

Assume the following table structure:
<table id="grid">
    <thead>
        <tr>
            <th>Title</th>
            <th>URL</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="2"></td>
        </tr>
    </tbody>
</table>
<script id="rowTemplate" type="text/x-kendo-tmpl">
    <tr>
        <td>


{Title} < / td >
< td > < a href =
{ Title }</td> <td><a href="


{URL} target = _ blank >
{ URL }" target="_blank">