I am using the Kendo Grid and I want to edit the rows inline. Everything works fine, but after clicking on the row I want to edit I get an error in kedon.edidtable.js at line 165: that.binder = new Binder(container, that.options.model, settings); It says that Binder is undefinde.
Here is my code:
var gridDataSource;
$(document).ready(function ()
{
gridDataSource = SimulateRestCall();
var dataSource = new kendo.data.DataSource({
data: gridDataSource,
schema:
{
model:
{
id: "Id",
fields:
{
ShortName: { type: "string", validation: {required: true} },
Name: { stype: "string", validation: {required: true} }
}
}
},
pageSize: 5
});
$("#grid").kendoGrid(
{
dataSource:dataSource,
height: 210,
editable: true,
navigatable: true,
pageable: true,
toolbar: ["create", "save", "cancel"],
columns: [
{ field: "Name", width: "120px", title: "Account Name" },
{ field: "ShortName", width: "80px", title: "Short Name", filterable: false}]
});
});
I have no idea what I do wrong, thanks for your help,
Cheers
Here is my code:
var gridDataSource;
$(document).ready(function ()
{
gridDataSource = SimulateRestCall();
var dataSource = new kendo.data.DataSource({
data: gridDataSource,
schema:
{
model:
{
id: "Id",
fields:
{
ShortName: { type: "string", validation: {required: true} },
Name: { stype: "string", validation: {required: true} }
}
}
},
pageSize: 5
});
$("#grid").kendoGrid(
{
dataSource:dataSource,
height: 210,
editable: true,
navigatable: true,
pageable: true,
toolbar: ["create", "save", "cancel"],
columns: [
{ field: "Name", width: "120px", title: "Account Name" },
{ field: "ShortName", width: "80px", title: "Short Name", filterable: false}]
});
});
I have no idea what I do wrong, thanks for your help,
Cheers