@
using Telerik.Web.Mvc.UI;
@using TPRO.Models
@{
View.Title =
"Home Page";
Layout =
"~/Views/Shared/_Layout.cshtml";
}
<
table width="100%" cellpadding="0" border="0" cellspacing="0">
<tr valign="top" align="left"><td style="background:#FFF8C6">
@(
Html.Telerik().PanelBar().Name(
"PanelBar")
.HtmlAttributes(
new { style = "width: 300px;" })
.BindTo(Model, mappings =>
{
mappings.For<
GroupsModels>
(binding => binding.ItemDataBound((item, category) =>
{ item.Text = category.Group; })
);
})
)
</td><td align="right" style="width:300px"><img alt="" src="../../images/logo.jpg" /></td></tr>
<tr style="background:#000000"><td align="center" colspan="2"><h2 style="color:White">Welcome to GDOT Transportation Projects</h2></td></tr>
</
table>
error is Error
Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type c:\validation\MVCtpro\Views\Home\frmPanel2.cshtml
it is driving me nuts
thanks