PDA

View Full Version : [FIXED] setEditor cannot work in rowEditing



hexawing
8 Nov 2011, 6:56 PM
REQUIRED INFORMATION Ext version tested:

Ext 4.0.2 4.0.7

Browser versions tested against:

FF6.0.2 (firebug 1.8.4 installed)

DOCTYPE tested against:

____

Description:

In a grid with rowEditing plugin, setEditor() method cannot work.

Steps to reproduce the problem:



The result that was expected:



The result that occurs instead:



Test Case:
var quoteItemRowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2,
autoCancel: false,
listeners: {
beforeedit: function(){
Ext.getCmp('col_email').setEditor(new Ext.form.field.Text({value: 3}));
}
}
});

Ext.create('Ext.data.Store', {
storeId: 'simpsonsStore',
fields: ['name', 'email', 'phone'],
data: {
'items': [
{
"name": "Lisa",
"email": "lisa@simpsons.com",
"phone": "555-111-1224"},
{
"name": "Bart",
"email": "bart@simpsons.com",
"phone": "555--222-1234"},
{
"name": "Homer",
"email": "home@simpsons.com",
"phone": "555-222-1244"},
{
"name": "Marge",
"email": "marge@simpsons.com",
"phone": "555-222-1254"}
]
},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});

Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
store: Ext.data.StoreManager.lookup('simpsonsStore'),
plugins: [quoteItemRowEditing],
columns: [
{
header: 'Name',
id: 'col_name',
dataIndex: 'name',
editor: {}},
{
header: 'Email',
id: 'col_email',
dataIndex: 'email',
flex: 1,
editor: {}},
{
header: 'Phone',
id: 'col_phone',
dataIndex: 'phone'}
],
height: 200,
width: 400,
renderTo: Ext.getBody()
});
HELPFUL INFORMATION Screenshot or Video:



See this URL for live test case:
http://jsfiddle.net/hexawing/mf2jH/8/
Debugging already done:

none

Possible fix:

not provided

Additional CSS used:

only default ext-all.css

Operating System:


WinXP Pro

mitchellsimoens
9 Nov 2011, 6:32 AM
Thank you for the report