richard.harrison
2 Mar 2012, 12:56 PM
I have a grid with a row editing plugin...let's call it "rowEditing". I have added a button to invoke an insert of a record to the bound store. If I were to use the code from the examples, I would add something like:
rowEditing.cancelEdit();
// Create a record instance through the ModelManager
var r = Ext.ModelManager.create({
name: 'New Guy',
}, 'Employee');
store.insert(0, r);
rowEditing.startEdit(0, 0);
My question is how do I get a reference to "rowEditing"? I know how to do this via code, but I can't quite figure out what steps I take in the IDE to get to this point. Am I to "Promote to Class"? If so, how do I finish wiring it up?
Very confused. Thank you for any support you can provide.
rowEditing.cancelEdit();
// Create a record instance through the ModelManager
var r = Ext.ModelManager.create({
name: 'New Guy',
}, 'Employee');
store.insert(0, r);
rowEditing.startEdit(0, 0);
My question is how do I get a reference to "rowEditing"? I know how to do this via code, but I can't quite figure out what steps I take in the IDE to get to this point. Am I to "Promote to Class"? If so, how do I finish wiring it up?
Very confused. Thank you for any support you can provide.