2
我们知道,在Telerik的电网,我们将使用这样关于Telerik的电网
<% Html.Telerik().Grid(Model.Terminology.Contents).Name("TerminologyCategories")
.Columns(column =>
{
column.Bound(termContent => termContent.Language.Name).Title("Language");
column.Bound(termContent => termContent.Data).Title("Text");
column.Template(termContent => Html.ActionLink("Edit", "#",
new { id = termContent.ID, termid = termContent.Terminology.ID },
new { onclick = "editContentDialog(" + termContent.ID + "); return false;" })).Title("Action");
column.Bound(termContent => termContent.Updated);
column.Bound(termContent => termContent.aspnet_Users.UserName);
}).Render();
%>
假设行:
column.Template(termContent => Html.ActionLink("Edit", "#",
new { id = termContent.ID, termid = termContent.Terminology.ID },
new { onclick = "editContentDialog(" + termContent.ID + "); return false;" })
).Title("Action");
我想使用或创建基于termContent.Data是编辑链接有没有在这种情况下如何可以使用如果其他条件在telerik column.template或column.bound属性 任何人都可以指导我。 我在结构it.please有人能帮助我
感谢 Manjunath