View Full Version : [1.1] Preventing an EditorGrid Cell to blur

21 Aug 2007, 12:20 AM
[this is a repost from the premium support forum]

Hi all,

I would like to know which is the best way to prevent a cell to blur when the user clicks outside of it.
I have a cell that, when selected, displays additional information (see the attached image). When the user clicks on the text area, the cell blurs (and so does the additional information). So I would like to:
- Keep the additional data layer displayed
- re-route the tab index to the text area field (i.e. focus on the cell -> tab -> focus on the text area instead of on the next field)

Here the code (TimeField overrides TextField):


onRender : function(ct, position) {
TimeField.superclass.onRender.call(this, ct, position);

// layer object
this.descriptionLayer = new Ext.Layer({shadow: true, constrain: true, cls: 'time-field-description'});

var container = this.descriptionLayer.createChild({cn: [{tag: 'h3', html: this.descriptionTitle}]});

// description text area inside of the fieldset
this.descriptionTextArea = new Ext.form.TextArea({name: 'description', value: ''});

Thanks in advance for the help