I have an Ajax Toolkit combobox in a web page, which have a master page. The Combobox is inside a table.When the webpage loads the listitems of this combo box are appearing below far away from the combo box.
What is the fix?? :(
I have an Ajax Toolkit combobox in a web page, which have a master page. The Combobox is inside a table.When the webpage loads the listitems of this combo box are appearing below far away from the combo box.
What is the fix?? :(
I'm having the same problem. It's a well listed bug that is also in the ajaxcontrolkit autocompleteextender. Basically, the calculations for where the list will be placed inside the page are wrong.
There are lots of fixes for this, but they're a pain to use, so just do this:
combobox1_OptionList{
position: fixed !important
}
It changes the way the calculations are made, which luckily makes it accurate.
Note: if your containing div will change position on window resize (e.g left: 10%; top 50%;
) then when you change your window size, the combo box list will not move under the combo box and will be left behind. However, each time the combo box list is triggered its position is recalculated, so adding a javascript event for a window resize that turns the comboboxlist off might do the trick.
Try wrapping the ComboBox in a div. I had the very same problem. I added a class to each ComboBox div and added the following css.
.cbox
{
margin: 0 auto;
width: 280px;
}
Set the width according to your preference. Margin: auto places the div centrally within the parent according to the width.
Kindly look at this sample
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx
ComboBox Known Issues
When ListItemHoverCssClass is specified and the ComboBox list is scrollable, highlighting a list item will cause the scrollbar to flicker when using the Internet Explorer web browser. To avoid this issue, do not specify the ListItemHoverCssClass property.
if this doesn't solve a problem mention your markup for combobox in comment
thanks