I have a maintenance grid for data where one of the columns is an "Archived?" column which should be read-only when adding a new record or editable otherwise - database/data layer will default the value to false in any case. How can I achieve that? The relevant column in my grid is defined as follows:
columns.Bound(t => t.IsArchived).ClientTemplate("<input type='checkbox' onclick='return false;' #= IsArchived ? checked='checked' : '' # />").HtmlAttributes(new { style = "text-align: center;" }).HeaderHtmlAttributes(new { style = "text-align: center;" }).Width(140);