在kendo ui网格中创建超链接 [英] creating hyperlink in kendo ui grid
本文介绍了在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">
这篇关于在kendo ui网格中创建超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文