All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
.ToolBar(toolbar => {
if
(userCanEdit)
{
toolbar.Create();
toolbar.Save();
}
})
How can i achieve this in vb.net?
Html.Kendo().Grid(Of MyData)() _ .Name("Grid") _ .Editable(Function(e) e.Mode(GridEditMode.InLine)) _ .ToolBar(Function(t) If ViewBag.FullControl Then t.Create() End If) _
This error is thrown due to a syntax error. I recommend you to try to do it this way :
.ToolBar(Function(t) If ViewBag.Controll = True Then t.Create() End If End Function) _