6
MVC에서이 작품을 얻을 수있는 방법 Telerik Grid ControlMVC Telerik Grid 조건부 값?
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" })
}
});
놀라운 답변입니다. 이것은 내가 몇 달 동안 어떻게해야 하는지를 알아 내려고 노력해 왔습니다. –
안녕하세요, @ carlbergenhem, 대단히 감사합니다 .... –
감사합니다 -이 솔루션은 잘 작동했습니다. – cyclical