This question is locked. New answers and comments are not allowed.
I get the error:
System.MissingMethodException: Cannot create an instance of an interface
at
Line 13: <%= Html.Telerik().Grid(Model)
I have a view that is based on an interface, like so:
System.MissingMethodException: Cannot create an instance of an interface
at
Line 13: <%= Html.Telerik().Grid(Model)
I have a view that is based on an interface, like so:
<% @ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ISomething>>" %> Format Code Block ( <%= Html.Telerik().Grid(Model) .Name("vSomething") .Sortable() .DataKeys(dataKeys => dataKeys.Add(a => a.Id)) .ToolBar(commands => commands.Insert()) .DataBinding(dataBinding => dataBinding.Server() .Update("Update", "Admin") .Insert("Insert", "Admin") ) .Columns(columns => { columns.Bound(a => a.Name); columns.Command(commands => commands.Edit()); }) %>
)
I really need the view to be based on an interface. What can I do to fix this?