This question is locked. New answers and comments are not allowed.
I have an C# view like that and works fine
@model IEnumerable<Customer>
@{ Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<text><p>Hello World</p> </text>).Title("Accion").Title("Picture");
columns.Bound(c => c.ContactName).Title("Name");
columns.Bound(c => c.Phone);
})
.Sortable()
.Scrollable(scrolling => scrolling.Height(250))
.Pageable()
.Render();
}
but then when I wrote it to vb
...
@model IEnumerable(of Customer)
@(Html.Telerik().Grid(Model) _
.Name("Grid") _
.Columns(Function(columns) _
columns.Template(@<text><p>Hello World</p> </text>).Title("Action").Title("Picture")
columns.Bound(Function(c) c.ContactName).Title("Name")
columns.Bound(Function(c) c.Phone)
End Function) _
.Pageable() _
.Sortable() _
.Filterable() _
.Groupable()
the template function give me an Expression Expected Error
Regards!
@model IEnumerable<Customer>
@{ Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<text><p>Hello World</p> </text>).Title("Accion").Title("Picture");
columns.Bound(c => c.ContactName).Title("Name");
columns.Bound(c => c.Phone);
})
.Sortable()
.Scrollable(scrolling => scrolling.Height(250))
.Pageable()
.Render();
}
but then when I wrote it to vb
...
@model IEnumerable(of Customer)
@(Html.Telerik().Grid(Model) _
.Name("Grid") _
.Columns(Function(columns) _
columns.Template(@<text><p>Hello World</p> </text>).Title("Action").Title("Picture")
columns.Bound(Function(c) c.ContactName).Title("Name")
columns.Bound(Function(c) c.Phone)
End Function) _
.Pageable() _
.Sortable() _
.Filterable() _
.Groupable()
the template function give me an Expression Expected Error
Regards!