Solved

ajax combobox text area and arrow button not lined up.

Posted on 2013-05-22
4
701 Views
Last Modified: 2013-06-02
Below is code I have for an ajaxtoolkit:combobox.  The arrow button is not lined up with the text box area of the combo box and it seems to be competely separate.

Obviously I want it to line up.  Can anyone tell me why this is happening?

Thanks

<ajaxToolkit:ComboBox ID="ddnMETRIC_NAME" runat="server" AutoPostBack="true"
                BackColor="#EEEEEE" BorderColor="#336699" BorderStyle="Inset"
                BorderWidth="2" DropDownStyle="DropDown" Font-Bold="True" Font-Names="Arial"
                Font-Size="10" ForeColor="#003366" AutoCompleteMode="SuggestAppend" Width="100%"
                RenderMode="Block">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>  
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>                              
                </ajaxToolkit:ComboBox>
ComboBox.PNG
0
Comment
Question by:rckrch
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Rose Babu
Comment Utility
The problem might be in the CSS you used on the same page.
<ajaxToolkit:ComboBox ID="ddnMETRIC_NAME" runat="server" AutoPostBack="true" BackColor="#EEEEEE"
      BorderColor="#336699" BorderStyle="Inset" BorderWidth="2" DropDownStyle="DropDown"
      Font-Bold="True" Font-Names="Arial" Font-Size="10" ForeColor="#003366" AutoCompleteMode="SuggestAppend"
      Width="100%" RenderMode="Block">
      <asp:ListItem>1</asp:ListItem>
      <asp:ListItem>2</asp:ListItem>
      <asp:ListItem>3</asp:ListItem>
      <asp:ListItem>4</asp:ListItem>
</ajaxToolkit:ComboBox>
This control is rendered correctly. Can you check the CSS used on the same page once.

Use FireBug in firefox to check and change the css value at runtime.
0
 

Author Comment

by:rckrch
Comment Utility
I know nothing about firefox.  IE is the only browser used.
0
 

Accepted Solution

by:
rckrch earned 0 total points
Comment Utility
I have already solved thei problem by changing rendering parameter from inline to block.
0
 

Author Closing Comment

by:rckrch
Comment Utility
Solved
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now