View Full Version : Problems with RowEditor
rmorales
10 Jan 2012, 7:50 AM
Hello friends.
I am trying to implement RowEditor in my new ExtJs Application but, when I want to add to a new row and get the values, it doesn't do that. In the API I don't see the getValues() method and when I try to get the new information, it doesn't get anything. why?
mitchellsimoens
10 Jan 2012, 8:03 AM
So when you add a new row and try to edit it the values don't show? Like the row editing grid example? It works. I'm not 100% what you are wanting.
rmorales
10 Jan 2012, 8:15 AM
So when you add a new row and try to edit it the values don't show? Like the row editing grid example? It works. I'm not 100% what you are wanting.
I am using a Ext.grid.plugin.RowEditing.
When I press the button "add" I use
agregarFila: function(store,rowEditing){
var r = Ext.create('Extidi.modulos.testpersonas.model.PersonasModelo', {
IdPersona: Ext.getCmp('idpersona').getValue(),
PrimerNombre: Ext.getCmp('primernombre').getValue(),
IdEstadoMensaje_EAP:'',
Mensaje:''
});
rowEditing.cancelEdit();
store.insert(0,r);
rowEditing.startEdit(0, 0);
}
When I try to get the new values It doesn't get that, It shows the defalut value why??
mitchellsimoens
10 Jan 2012, 8:46 AM
Try moving the cancelEdit to see if that helps. This is how the example does it and it works for 4.0.7 and 4.1.0:
rowEditing.cancelEdit();
// Create a model instance
var r = Ext.create('Employee', {
name: 'New Guy',
email: 'new@sencha-test.com',
start: new Date(),
salary: 50000,
active: true
});
store.insert(0, r);
rowEditing.startEdit(0, 0);
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.