PDA

View Full Version : Set focus at parent panel



oopkid
12 Sep 2010, 8:49 PM
I want to get parent form panel that contain my combobox (when user fire event select in combobox) and focus to it.

Can anyone please suggest me how to do that :-/

vishalnnsingh
12 Sep 2010, 10:12 PM
listeners:{
select:function(yourCombo){
yourCombo.findParentByType(Ext.form.FormPanel).focus()
}
}

oopkid
12 Sep 2010, 11:54 PM
Thank a lot, vishalnnsingh :D