ExtJS ComboBox Auto-complete function in IE under the invalid solution

Source: Internet
Author: User
Tags gety

Using a ComboBox as an auto-complete component, like Google suggestion, is not able to enter characters under IE, it is not editable, and Firefox and Chrome are displayed normally. I asked this question in 2 ExtJS QQ Group, did not solve, do not know is not still do not want to answer. I'm here to share the solution.
This problem bothered me a lot of time, on the internet always search for no answer. Finally, Google found a solution.

Method 1: Add the following code to your Ext.onready Method!

[HTML]View Plaincopy
  1. Ext.form.TriggerField.override ({
  2. Afterrender:function () {
  3. Ext.form.TriggerField.superclass.afterRender.call (this);
  4. var y;
  5. if (Ext.isie &&!this.hidetrigger && this.el.getY ()! = (y = This.trigger.getY ())) {
  6. This.el.position ();
  7. This.el.setY (y);
  8. }
  9. }
  10. });


Method 2:
Set the Hidetrigger property of the ComboBox to False

[HTML]View Plaincopy
    1. Hidetrigger:false


First I searched for this blog
http://vegdave.wordpress.com/2009/01/06/autocomplete-fix-for-ext-combobox-on-ie/# comment-14168
Then this blog gives a workaround for the link address
http://www.extjs.com/forum/showthread.php?p=204817

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.