Grids, checkbox and combo
Hello!
I've got some problems with my app.
1. I've got a combo as a field of one of my grids:
It works as i want, but when i select one of the results and i blur my combo, it shows the id...
There is the code:
Code:
{
header: "Empleado",
width: 200,
sortable: true,
dataIndex: 'Empleado',
editor: new Ext.grid.GridEditor(new Ext.form.ComboBox({
store: new Ext.data.JsonStore({
url: '../contratos/gestionEmpleados.php',
root: 'filas',
baseParams: parametros,
fields: ['id', 'nombre'],
totalProperty: "results"
}),
displayField:'nombre',
typeAhead: true,
valueField: 'id',
mode: 'remote',
hideTrigger: true,
minChars: 1,
maxChars: 9,
forceSelection: true,
triggerAction: 'all',
selectOnFocus:true
})
)
}
2. I've got 2 grids from the same controller (an own controller). If i comment one of them, the other one works fine, but when i use both, it just works the second one. When i select an item from the first grid, it selects the second one.
Do you know why is it? i tried to render my grids in different panels but it didn't work...
Thanks a lot!