I have a very frustrating problem with the AJAX combo box. I have a few controls: asp textbox, dev-express ASPxDateEdit and a AJAX Combobox arranged in an HTML table for use on a ASP content form as filters for data display.
For some reason I cannot get the combobox to align horizontally with the other controls. It remains a few pixels below the other controls. Is there some CSS style I need to set to get the aligment of this control correct?
I am using the BETA 09.11 AJAX library in Visual Studio 2008 SP 1 and the project is compiled with .NET framework 3.5 SP 1
I did check all the styles applied and found nothing that would affect th positioning of the control.
I did however find something that solved the problem. I changed the Rendermode property from
inline to block and now it renders in the correct position.
I don't know why this changes the position but perhaps someone out there can enlighten me...?
Les
ajax combobox
Marked as answer by LBrinkworth on Mar 30, 2010 07:16 PM
I have the exact same problem with the control, have tried the above mentioned solution and did not help at all
An interesting thing that I have stumbled upon is with each new item that I add the space between the combobox and the button expands
by 5px’s
I have uploaded a .zip (bug.zip) file with 2 .jpg files, for a visual presentation. The .zip file can be found here http://www.mediafire.com/file/9n4wzf1oxf1lraj/Bug.zip
The CSS used is the one that van be found in the AjaxControlToolkitSampleSite (AjaxControlToolkit.Binary.NET35) StyleSheet.css
It was done in Visual Web Developer 2008 Express Edition and Firefox 3.6.13 and with Microsoft Visual Studio 2008
LBrinkworth
Member
1 Points
6 Posts
AJAX Combobox alignment issue
Mar 29, 2010 08:43 AM|LINK
Hello all,
I have a very frustrating problem with the AJAX combo box. I have a few controls: asp textbox, dev-express ASPxDateEdit and a AJAX Combobox arranged in an HTML table for use on a ASP content form as filters for data display.
For some reason I cannot get the combobox to align horizontally with the other controls. It remains a few pixels below the other controls. Is there some CSS style I need to set to get the aligment of this control correct?
I am using the BETA 09.11 AJAX library in Visual Studio 2008 SP 1 and the project is compiled with .NET framework 3.5 SP 1
Many thanks
Les
AJAX asp.net 3.5 SP 1 Combobox
fashfaq
Participant
1175 Points
294 Posts
Re: AJAX Combobox alignment issue
Mar 29, 2010 10:51 AM|LINK
please see the View source of your compile page
and find some spaces or i think some margin-bottom effect on your dropdownlist
Fawad Ashfaq
Software Engineer
please Mark Answer if helpful
LBrinkworth
Member
1 Points
6 Posts
Re: AJAX Combobox alignment issue
Mar 30, 2010 07:16 PM|LINK
hello Fashfaq,
I did check all the styles applied and found nothing that would affect th positioning of the control.
I did however find something that solved the problem. I changed the Rendermode property from inline to block and now it renders in the correct position.
I don't know why this changes the position but perhaps someone out there can enlighten me...?
Les
ajax combobox
Hav0c
Member
23 Points
19 Posts
Re: AJAX Combobox alignment issue
Mar 01, 2011 10:21 AM|LINK
I have the exact same problem with the control, have tried the above mentioned solution and did not help at all
An interesting thing that I have stumbled upon is with each new item that I add the space between the combobox and the button expands by 5px’s
I have uploaded a .zip (bug.zip) file with 2 .jpg files, for a visual presentation. The .zip file can be found here http://www.mediafire.com/file/9n4wzf1oxf1lraj/Bug.zip
The CSS used is the one that van be found in the AjaxControlToolkitSampleSite (AjaxControlToolkit.Binary.NET35) StyleSheet.css
It was done in Visual Web Developer 2008 Express Edition and Firefox 3.6.13 and with Microsoft Visual Studio 2008