Tutorial talk:Some Usefull examples (Legacy)
This version of our Learning Center is unmaintained.
This article may be out-of-date or contain incorrect information.
Please visit the new Sencha Learning Center for up-to-date material.
From Sencha - Learn
Regarding the dynamical editor example.
Wouldn't it be better to use the beforeedit event (so it works if you tab into the field you want to edit)?
listeners: {
beforeedit: function(e) {
if (e.grid.getColumnModel().getDataIndex(e.column) == "trigger"){
if (e.grid.store.getAt(e.row).get('type') == 'custom'){
e.grid.getColumnModel().setEditor(e.column,date_right_editor);
} else {
e.grid.getColumnModel().setEditor(e.column,default_right_editor);
}
}
}
},
--Mattsheppard 03:06, 1 May 2008 (EDT)
This page was last modified on 1 May 2008, at 07:06.
This page has been accessed 486 times.
