Hi all,
we are implementing a grid using asp.net mvc and aspx pages. We are encountering a couple of problems using templates because it seems
that Visual Studio 2013 does not recognize the object implementation correctly. The error returned by Visual Studio is the CS1525:Invalid expression term ')'.. This is our code with the comments..
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteEnvironment.Master" Inherits="System.Web.Mvc.ViewPage<MyApp.Models.EnvTblModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Environment List</h2>
<%:
Html.Kendo().Grid<MyApp.Models.EnvTblModel>()
.Name("Grid")
.BindTo((IEnumerable<MyApp.Models.EnvTblModel>)ViewBag.EnvironmentList)
.Columns(colList =>
{
foreach (var runCol in ViewBag.colSchLst)
{
colList.Bound(runCol.TBS_BOUND_FIELD_NAME).Title(runCol.TBS_COLUMN_NAME);
}
colList.Bound(p =>
p.TBG_FILLER_CHK01).Template(p =>
{ /*VISUAL STUDIO GIVES THE ERROR CS1525: Invalid expression term ')' HERE .. */
%>
<strong><%: p.TBG_FILLER_CHK01 %></strong> //THIS BLOCK SEEMS NOT RECOGNIZED
<%
});
});
%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
Thank you in advance for your help..
Regards