This question is locked. New answers and comments are not allowed.
I tried to modify an example from URL: http://www.telerik.com/community/forums/aspnet-mvc/grid/cell-text-in-cellaction.aspx
for displaying the values of a boolean column as YES or NO
<% Html.Telerik()
.Grid(Model)
.Name("MyGrid")
.Columns
(
columns =>
{
columns.Bound(o => o.InstrumentName)
.Title("Instrument")
.Width(105);
columns.Bound(o => o.IsCompleted)
.Template
(
o =>
{
%>
<%= o.IsCompleted ? "Yes" : "No" %>
<%
}
)
.Title("Completed")
.Width(65);
}
)
.Render();
%>
I receive a compilation error CS1525: Invalid expression term ')'. I am unable to locate the issue!
for displaying the values of a boolean column as YES or NO
<% Html.Telerik()
.Grid(Model)
.Name("MyGrid")
.Columns
(
columns =>
{
columns.Bound(o => o.InstrumentName)
.Title("Instrument")
.Width(105);
columns.Bound(o => o.IsCompleted)
.Template
(
o =>
{
%>
<%= o.IsCompleted ? "Yes" : "No" %>
<%
}
)
.Title("Completed")
.Width(65);
}
)
.Render();
%>
I receive a compilation error CS1525: Invalid expression term ')'. I am unable to locate the issue!