Aug 01, 2012, 1:18 PM
[CLOSED] Grid Error
I am using a grid in an MVC (Razor) app with the rowEditing plugin. On the first page, there is no problem with editing. However, on other pages, when going into edit mode, I receive this error:
"context is undefined"
The debugger points me to this source:
Any ideas or hints as to why this error is presenting?
"context is undefined"
The debugger points me to this source:
if (me.beforeEdit(context) === false || me.fireEvent('beforeedit', me, context) === false || context.cancel || !me.grid.view.isVisible(true)) {
return false;
}
(here's a broader look)beforeEdit: Ext.emptyFn,
startEdit: function(record, columnHeader) {
var me = this,
context = me.getEditingContext(record, columnHeader);
if (me.beforeEdit(context) === false || me.fireEvent('beforeedit', me, context) === false || context.cancel || !me.grid.view.isVisible(true)) {
return false;
}
me.context = context;
me.editing = true;
},
I do have listeners on the rowEditing plugin, but I don't have a "BeforeEdit." I am retrieving the data via a proxy, but I have remote paging set to false, so I am unsure why editing on page 2-n would be any different than page 1.Any ideas or hints as to why this error is presenting?
Last edited by Daniil; Aug 02, 2012 at 3:13 PM.
Reason: [CLOSED]