PDA

View Full Version : [CLOSED-521][3.1.1-rc] TriggerField as editor of an EditorGridPanel



WixSL
2 Feb 2010, 4:29 PM
Ext version tested:

Ext 3.1.1-beta / 3.1.1-rc


css used:

only default ext-all.css


Browser versions tested against:

IE8
FF3.5.7 (firebug 1.5 installed)


Operating System:

WinXP Pro


Description:

When editing an EditorGridPanel cell, using a TriggerField as the editor of the column being edited,
the mouse cursor remains allways as a hand mouse-hovering the editor, and the "onTriggerClick" function gets called not only for the trigger button but for the textfield as well.
This doesn't happen on Ext 2.3.0.



Test Case:

Use the example ext-3.1.1-rc\examples\grid\edit-grid.html modifying the columnModel in edit-grid.js file like this:



// the column model has information about grid columns
// dataIndex maps the column to the specific data field in
// the data store (created below)
var cm = new Ext.grid.ColumnModel({
// specify any defaults for each column
defaults: {
sortable: true // columns are not sortable by default
},
columns: [
{
id: 'common',
header: 'Common Name',
dataIndex: 'common',
width: 220,
// use shorthand alias defined above
editor: new fm.TriggerField({
allowBlank: false,
triggerClass: 'x-form-search-trigger',
onTriggerClick: function(){
alert('Test');
}
})
}, {
header: 'Light',
dataIndex: 'light',
width: 130,
editor: new fm.ComboBox({
typeAhead: true,
triggerAction: 'all',
// transform the data already specified in html
transform: 'light',
lazyRender: true,
listClass: 'x-combo-list-small'
})
}, {
header: 'Price',
dataIndex: 'price',
width: 70,
align: 'right',
renderer: 'usMoney',
editor: new fm.NumberField({
allowBlank: false,
allowNegative: false,
maxValue: 100000
})
}, {
header: 'Available',
dataIndex: 'availDate',
width: 95,
renderer: formatDate,
editor: new fm.DateField({
format: 'm/d/y',
minValue: '01/01/06',
disabledDays: [0, 6],
disabledDaysText: 'Plants are not available on the weekends'
})
},
checkColumn // the plugin instance
]
});

evant
7 Feb 2010, 8:29 PM
I can't confirm either of these issues, using the rc on FF3.

Can anyone else?

WixSL
8 Feb 2010, 12:29 AM
I try it again and can't reproduce it on FF 3.5 either.
Sorry, maybe i miss some configuration in the example to be abnle to reproduce it. I'l keep trying.
Obviously this one can be close.