I am need hide/show trigger on fields (bobox,*date* and etc.) without invoke method doComponentLayout() (source code of setReadOnly method). The method doComponentLayout() is very slowly on IE. Can anybody help me? Thank you!
I am need hide/show trigger on fields (bobox,*date* and etc.) without invoke method doComponentLayout() (source code of setReadOnly method). The method doComponentLayout() is very slowly on IE. Can anybody help me? Thank you!
Share Improve this question asked Oct 18, 2012 at 8:53 vedmedvedmed 3552 gold badges8 silver badges16 bronze badges2 Answers
Reset to default 5You can also use the setHideTrigger(true) method. This is a private method on Ext.form.field.ComboBox - (see Extjs ComboBox, make sure to check "Private" in the "Show" menu.)
Calling myCombo.triggerEl.hide() doesn't work if the bo ponent hasn't been rendered yet.
You can also hide the trigger when ponent is first initialized by setting the config property hideTrigger: false.
You should be able to show/hide the triggerEl that is a property of anything that extends Ext.form.field.Trigger (such as bo, date, etc.).
See live example here:
http://jsfiddle/hWGYE/765/