Apr 04, 2016, 4:33 PM
[CLOSED] GridPanel Error before editing
In the example below, please try and click the button in the toolbar. There will come a javascript error.
ext.axd?v=4.0.0-rc:102800 Uncaught TypeError: Cannot read property 'isEntity' of undefined
ext.axd?v=4.0.0-rc:102800 Uncaught TypeError: Cannot read property 'isEntity' of undefined
@{
var x = Html.X();
}
@(
x.GridPanel()
.ColumnModel(
x.Column()
.Editor(x.TextField())
.DataIndex("Name")
)
.Plugins(x.CellEditing())
.Store(
x.Store()
.Fields(
x.ModelField().Name("Name")
)
)
.TopBar(x.Toolbar()
.Items(
x.Button()
.Text("Add")
.Handler(@"
var gp = this.up('gridpanel');
var editing = gp.findPlugin('cellediting');
var record = gp.store.add({});
editing.startEdit(record,0);
")
)
)
)
Last edited by fabricio.murta; Apr 05, 2016 at 7:34 PM.