The solution is to remove the ReadOnly attribute from the datasource viewmodel, and instead apply it to the column.
ViewModel
public class TransactionViewModel {
[
public Int32 DealNum { get; set; }
}
View
columns.Bound(m => m.DealNum).Width(70).Title("Deal No.").ReadOnly();
Other references
http://www.telerik.com/community/forums/aspnet-mvc/grid/mvc-grid-readonly-field-gets-null-when-updated.aspx
No comments:
Post a Comment