【发布时间】:2011-12-07 10:35:22
【问题描述】:
如何在 MVC Telerik Grid Control 中完成这项工作
columns.Template(e =>
{
if (e.EndDate>DateTime.Now )
{
@Html.ActionLink("Stop", "StopMedication", "Medication",
new { id = e.PrescriptionID }, new { @class = "standard button" })
}
else {
@Html.ActionLink("Renew", "RenewMedication", "Medication",
new { id = e.PrescriptionID }, new { @class = "standard button" })
}
});
【问题讨论】:
标签: grid telerik conditional