This is a migrated thread and some comments may be shown as answers.

[Solved] DropDownList not rendered correctly in IE7 on dropdown

3 Answers 40 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johan
Top achievements
Rank 1
Johan asked on 10 Apr 2012, 11:27 AM

The Telerik MVC DropDownListFor is not rendered properly in IE7, when the dropdown is made visible the first time. See attachment.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 11 Apr 2012, 08:48 AM
Hello Johan,

Thank you for sending us the sample project. I tried to reproduce the problem and the dropdown behavior is the same in all the major browsers (including IE7). I was able to achieve the same "shift" of the DropDownList when the browser window is re-sized.
Basically in such pages with flexible layout you should hook a handler to the window resize event and close the DropDownList body.
e.g.
$(window).resize(function(e){$('.t-animation-container').hide()})


Greetings,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Johan
Top achievements
Rank 1
answered on 11 Apr 2012, 09:28 AM
Hi Petur,

you are indeed right that the sample is working in all browser. I was testing it in IE9 in IE7 Document Mode, sorry.

If you still want to reproduce the problem, you can add the following line to the Site.Master.

For me (with the solution you proposed), it’s not a problem anymore.



0
Johan
Top achievements
Rank 1
answered on 11 Apr 2012, 10:11 AM

If you use the hide to "close" the DropDownList, the DropDownList will not work any more. Another way to close the DropDownList (and comboboxed):

$(window).resize(function (e) { 
    $('.t-dropdown input, .t-combobox input').each(function () {
        var $this = $(this);
        var list = $this.data("tDropDownList") || $this.data("tComboBox");
        if(list) {
            list.close();
            }
    });
})

Tags
ComboBox
Asked by
Johan
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Johan
Top achievements
Rank 1
Share this question
or