This question is locked. New answers and comments are not allowed.
I've downloaded the trial version of the MVC controls and I was attempting to create a simple column template.
Here is my code below and Error below:
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.PrefixUrlParameters(false)
.Columns(columns =>
{
columns.Bound(o => o.ADNumber).Width(100);
columns.Template(o =>
{
%>
<textarea cols="100" rows="10">
<%= o.ADText%>
</textarea>
<%
});
columns.Bound(o => o.ADText).Width(400);
columns.Bound(o => o.DocketNumber).Width(100);
columns.Bound(o => o.EffectiveDate).Format("{0:MM/dd/yyyy}").Width(120);
})
.Pageable()
.Sortable()
.Scrollable()
.Render();
%>
Here is my code below and Error below:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1525: Invalid expression term ')'
Source Error:
|
<%= Html.Telerik().Grid(Model)
.Name("Grid")
.PrefixUrlParameters(false)
.Columns(columns =>
{
columns.Bound(o => o.ADNumber).Width(100);
columns.Template(o =>
{
%>
<textarea cols="100" rows="10">
<%= o.ADText%>
</textarea>
<%
});
columns.Bound(o => o.ADText).Width(400);
columns.Bound(o => o.DocketNumber).Width(100);
columns.Bound(o => o.EffectiveDate).Format("{0:MM/dd/yyyy}").Width(120);
})
.Pageable()
.Sortable()
.Scrollable()
.Render();
%>