Results 1 to 2 of 2

Thread: extjs4 combo display issue in ie8 browser as it is not displaying the combox properly

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    3

    Default extjs4 combo display issue in ie8 browser as it is not displaying the combox properly

    combo.png
    Hi All,
    I am getting combo box displaying like combo and a number box together. I have used plain ext js stuff only with an "xtype:combo" and the store attributes.
    Please refer the attached image. Why I am getting it like that?
    i am seeing this issue in IE8, actually it looks fine in mozilla
    I am using ext4.2 version.
    Please help me...
    Thanks, sj

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    462
    Answers
    65

    Default Tested in IE8

    I tested this simple code sample (see below) in IE8 using ExtJS 4.2.0, 4.2.1 and 4.2.2. I was not able to reproduce the screenshot that you've attached. I even changed my doctype to be invalid and could not break the layout.

    Generally speaking, issues that only occur in IE8 are due to incorrect doctype. Make sure to use STRICT.

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    Here is the code I was testing with:

    Code:
    Ext.onReady(function () {
        var states = Ext.create('Ext.data.Store', {
            fields: ['abbr', 'name'],
            data : [
                {"abbr":"AL", "name":"Alabama"},
                {"abbr":"AK", "name":"Alaska"},
                {"abbr":"AZ", "name":"Arizona"}
            ]
        });
    
    
        Ext.create('Ext.form.ComboBox', {
            fieldLabel: 'Choose State',
            store: states,
            queryMode: 'local',
            displayField: 'name',
            valueField: 'abbr',
            renderTo: Ext.getBody()
        });
    });
    Thanks!
    Greg

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •