Hi,
I'm using the mvc wrappers and getting a javascript error when clicking the create button. I'm using jquery 1.9.1, ive tried 1.8.1 and get same error. Here's my razor markup. Anyone know whats going on here?
The js error is in the image but the message is "Uncaught TypeError: Cannot read property 'Name' of undefined.
I'm using the mvc wrappers and getting a javascript error when clicking the create button. I'm using jquery 1.9.1, ive tried 1.8.1 and get same error. Here's my razor markup. Anyone know whats going on here?
The js error is in the image but the message is "Uncaught TypeError: Cannot read property 'Name' of undefined.
@(Html.Kendo().Grid<
PosAdmin.Areas.Config.Models.ConfigProject
>()
.Name("grid")
.Columns(c =>
{
c.Bound(m => m.Description);
c.Bound(m => m.Id);
c.Bound(m => m.Team.Name);
c.Bound(m => m.Name);
c.Bound(m => m.Team.Description);
c.Command(command => { command.Edit(); command.Destroy(); }).Width(160);
})
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Pageable()
.Sortable()
.Scrollable()
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(p => p.Id))
.Create(update => update.Action("CreateProject", "ConfigEditor",new {Area="Config"}))
.Read(read => read.Action("ProjectsRead","ConfigEditor",new {Area="Config"}))
.Update(update => update.Action("EditingInline_Update", "Grid"))
.Destroy(update => update.Action("EditingInline_Destroy", "Grid"))
)
)