[英]Kendo Grid with client template
這是我的Telerik Grid。 我想將其轉換為Kendo Grid。
我必須將此代碼寫入Kendo Grid:
@(Html.telerik().Grid<MDA.AppEntities.Orders.OrderList(Model.OrderList)
.Name("GridLastOrder")
.Columns(columns =>{ columns.Template(@<text>
@if (item.EventTypeID == 2 || item.EventTypeID == 3)
{
var nurserole = new string[] { OperationRoles.Nurse.ToString() };
if (item.EventTypeID == 2 && nurserole.Any(MDA.AppController.GlobalController.CSRRoles.Isinrole))
{
<a href="@Url.Action("CreateConsultation", "Operations", new { customerID = item.EventPatientID, type = item.EventTypeID, IsEdit = item.Ord_ID })">
Edit/ Modify Consult
</a> <br />
<a href="Javascript:void(0)" onclick="javascript:cancelConsult(@item.Ord_ID)" style="color:Red;">
Cancel
Consult
</a><br />
}
}
</text>).Title("Action Links");
})
.Sortable() ) }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.