Editing Dynamically Generated Telerikmvc3 Grid <p>I have a dynamically generated MVC3 grid that is populated from a ViewModel. I need to add editing to the grid and cant get it to even go into edit mode.</p> <p>Also I need to be able to make some of the columns readonly.</p> <p>My code is below:</p> <pre><code>@(Html.Telerik() .Grid&lt;System.Data.DataRow&gt;(Model.Data.Rows.Cast&lt;System.Data.DataRow&gt;()) .HtmlAttributes(new { style = "width: 2500px" }) .Name("Grid") .ToolBar(tb =&gt; tb.Template("Outstanding Orders")) .DataKeys(dataKeys =&gt; dataKeys.Add("DeliveryID")) .Columns(columns =&gt; { columns.Command(commands =&gt; { commands.Edit().ButtonType(GridButtonType.ImageAndText) .HtmlAttributes( new { style = "width: 60px; min-width: 40px; background: #0066FF" }); }).Width(100).Title("Commands"); columns.Command(commandbutton =&gt; { commandbutton.Select().ButtonType(GridButtonType.ImageAndText) .HtmlAttributes( new { style = "width: 60px; min-width: 40px; background: #0066FF" }); columns.LoadSettings(Model.Columns as IEnumerable&lt;GridColumnSettings&gt;); }) .DataBinding(dataBinding =&gt; dataBinding.Server() .Select("_DeliveryGrid", "Deliveries") .Update("Save", "Deliveries")) .Editable(editing =&gt; editing.Mode(GridEditMode.InLine)) .Sortable(settings =&gt; settings.Enabled(true)) .Scrollable(c =&gt; c.Height("9000px")) .EnableCustomBinding(true) .Resizable(resize =&gt; resize.Columns(true)) ) </code></pre> <p>My viewmodel definition</p> <pre><code>public class DeliveriesGridViewModel { public DataTable Data { get; set; } public IEnumerable&lt;GridColumnSettings&gt; Columns { get; set; } } </code></pre> <p>Thanks for the help</p>