I have wired up a simple grid with some bound columns and one of those columns I'm trying to create a hyperlink. Here is my code:
The second column is the column where I'm attempting to show the hyperlink. Now, when I render the page, I can see the hyperlink for a split second before it disappears and I just see the text is supposed to be included in the link, but it is not linked after that.
Now, here's the funny thing: If I remove the reference to kendo.aspnetmvc.min.js in my BundleConfig.cs file, the hyperlinks show up just fine, however, I get a "Script not included" error if I do this.
Any idea what I'm doing wrong?
@(Html.Kendo().Grid(Model.CareAlerts)
.Name(
"Alerts"
)
.Columns(columns =>
{
columns.Bound(p => p.AlertDate).Title(
"Date"
).Format(
"{0:d}"
);
columns.Bound(p => p.PatientName).Template(@<text>
@Html.ActionLink(@item.PatientName,
"Member"
,
new
{ id = @item.PatientASID })
</text>);
columns.Bound(p => p.AlertSummary).Title(
"Message"
);
})
.Sortable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(
false
)
)
)
The second column is the column where I'm attempting to show the hyperlink. Now, when I render the page, I can see the hyperlink for a split second before it disappears and I just see the text is supposed to be included in the link, but it is not linked after that.
Now, here's the funny thing: If I remove the reference to kendo.aspnetmvc.min.js in my BundleConfig.cs file, the hyperlinks show up just fine, however, I get a "Script not included" error if I do this.
Any idea what I'm doing wrong?