or

@using Kendo.Mvc.UI@model string@(Html.Kendo().MaskedTextBoxFor(m=>m).Mask("(000) 000-0000"))public class ResidentVm { public Guid ResidentId { get; set; } [Required] public string FirstName { get; set; } [Required] public string LastName { get; set; } [Required] [DataType(DataType.EmailAddress)] public string Email { get; set; } [Required] [DataType(DataType.PhoneNumber)] [UIHint("Telephone")] public string Phone { get; set; } [Display(Name = "DOB")] [Required] [UIHint("Date")] public DateTime DOB { get; set; } }@(Html.Kendo().Grid<ResidentVm>() .Name("ResidentsGrid") .Columns(c => { c.Bound(r => r.ResidentId).Hidden(); c.Bound(r => r.FirstName); c.Bound(r => r.LastName); c.Bound(r => r.Phone).EditorTemplateName("telephone"); c.Bound(r => r.Email); c.Bound(r => r.DOB).Format("{0:d}").EditorTemplateName("Date"); }) .Editable(editable => editable.Mode(GridEditMode.InCell)) .ToolBar(toolBar => toolBar.Create()) .Pageable() .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:230px; margin-bottom:20px" }) .DataSource(dataSource => dataSource .Ajax() .Batch(true) .ServerOperation(false) .PageSize(20) .Events(events => events.Error("error_handler")) .Model(m => { m.Id(em => em.ResidentId); m.Field(p => p.ResidentId).Editable(false); }) .Create(update => update.Action("CreateResidents", "AuthorizationExemption")) .Read(read => read.Action("GetResidents", "AuthorizationExemption")) .Update(update => update.Action("EditingInline_Update", "AuthorizationExemption")) .Destroy(update => update.Action("EditingInline_Destroy", "AuthorizationExemption")) ) )
dataSource: { transport: { read: { url: "rest/books", type: "POST", contentType: "application/json; charset=utf-8" }...Remote Address:[::1]:8082Request URL:rest/booksRequest Method:POSTStatus Code:400 Bad RequestRequest Headersview sourceAccept:*/*Accept-Encoding:gzip, deflateAccept-Language:en-US,en;q=0.8Cache-Control:no-cacheConnection:keep-aliveContent-Length:31Content-Type:application/json; charset=UTF-8Host:localhost:8082Origin:http://localhost:8081Pragma:no-cacheReferer:http://localhost:8081/User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36Request Payloadtake=5&skip=0&page=1&pageSize=5parameterMap: function (options) { return JSON.stringify(options);}{"take":5,"skip":0,"page":1,"pageSize":5}