View Full Version : TriggerField in EditorGridPanel does not work

12 Jan 2010, 6:21 PM
I want to use a TriggerField in EditorGridPanel,so I write my own TriggerField with a tree in it (just like a tree combo,) and I have tested the control in a FormPanel,it works fine.
When I use it in a editor of EditorGridPanel's column, push down the the trigger,the control also displayed well,but when I click the tree in my triggerfield,it disappeared at once.In another words,I can not use any control such as button,tree,textfield in my treecombo,as soon as I clicked in the combo,it disappeared.I am positive that the control is focused...
there is the code segment:

var fm = Ext.form;
var cm = new Ext.grid.ColumnModel({

defaults: {
sortable: true
columns: [
header: 'Price',
dataIndex: 'price',
width: 70,
align: 'right',
//renderer: 'usMoney',
editor: new Ext.Wfe.MyTriggerField({...})
}, {

header: 'Available',
dataIndex: 'availDate',
width: 95,
renderer: formatDate,
editor: new fm.DateField({ //DateField works fine by click...
format: 'm/d/y',
minValue: '01/01/06', disabledDays: [0, 6],
disabledDaysText: 'Plants are not available on the weekends'



var grid = new Ext.grid.EditorGridPanel({


store: store,

cm: cm,

width: 600,

height: 300,

autoExpandColumn: 'common',

title: 'Edit Plants?',

frame: true,

clicksToEdit: 2


12 Jan 2010, 7:31 PM
oh,it's done..
i just lost to set validateBlur....
thanks everybody.
and I am curious about how to delete this thread...

22 Feb 2010, 2:01 PM
Hi bjout,

In my opinion, It's good that you do not delete this thread. This might help someone someday. Maybe in the future, someone will have the same problem as you, and forget to do the exact same thing.


25 Feb 2010, 8:54 AM
I agree. I think this solves a problem with my custom TriggerField too.