Display vertical scrollbars in a dynamic CheckBoxList with in IE?? (works fine in Chrome and FF)

646 views Asked by At

Below is a dynamic CheckBoxList control that I've added to my webpage, in Chrome and Firefox this works just fine, displaying the vertical scrollbar correctly. However, IE does not display scrollbars, it just lists a large list without scrolls. What do i need to do to get IE to show this correctly as the other two browsers do?

var pMultiValueList = new CheckBoxList();
pMultiValueList.Style.Add("Position", "relative");
pMultiValueList.Style.Add("overflow", "auto");
pMultiValueList.Style.Add("display", "block");

Thanks!!

2

There are 2 answers

0
user259286 On BEST ANSWER

Created an ascx of a checkboxlist surrounded by div and used that. Works now.

2
Blair McMillan On

Try giving it a fixed height or number of items to show.