PDA

View Full Version : Extending onTypeAhead in Ext.form.ComboBox



philiparad
9 Feb 2010, 10:54 PM
Hi

In Ext.form.ComboBox there is the function onTypeAhead:


onTypeAhead : function(){
if(this.store.getCount() > 0){
var r = this.store.getAt(0);
var newValue = r.data[this.displayField];
var len = newValue.length;
var selStart = this.getRawValue().length;
if(selStart != len){
this.setRawValue(newValue);
//--------------------------------------------------> how to insert here an event?
this.selectText(selStart, newValue.length);
}
}

We need to add some action after the RawValue was set.

How can we do it?

Thanks
Philip