<DIV> tag not allowing AutoCompleteExtender's autoDrop down to appear fully

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manikrag
    New Member
    • Jun 2009
    • 62

    <DIV> tag not allowing AutoCompleteExtender's autoDrop down to appear fully

    Hi Team,

    I searched a lot on this but could not find anything, so I am posting it here.

    I am using an AutoCompleteExt ender in a user control which is in a master page. The page layout is designed byDIV tags. My code in that user control is somehting like..
    ----------------------------
    Code:
    <DIV>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    		<asp:TextBox ID="TextBox1" runat="server" Width="160px"></asp:TextBox>
    		<cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" MinimumPrefixLength="1" 
    		ServiceMethod="GetVendors" CompletionListItemCssClass="listItem" CompletionListCssClass="completionListElement" CompletionListHighlightedItemCssClass="highlightedListItem" ServicePath="http://webtest.ariba.com/ajax/webservice.asmx" 
    		TargetControlID="TextBox1" OnClientItemSelected="Test"> </cc1:AutoCompleteExtender>
    		  <asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Search" />
    </DIV>
    
    <div>Rest of the page with multiple div tags</div>
    ----------------------------
    When I type anything in the textbox, the auto dropdown does not appear fully becasue 2nd DIV tag hides or overlap the dropdown.

    Please help me,

    Thanks,
    Manik
    Last edited by Frinavale; Sep 11 '09, 02:16 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Could you please post the CSS styles applied to the <div>'s you're talking about here?

    Comment

    • Manikrag
      New Member
      • Jun 2009
      • 62

      #3
      Thanks for responding buddy!

      Sure, here we go!
      -----------------------
      <style type="text/css">
      .completionList Element
      {

      visibility : 0;
      margin : 0px! important;

      background-color : white;
      color : black;

      border : solid 1px gray;
      cursor : hand;

      text-align : left;
      list-style-type : none;

      font-family : Verdana;
      font-size: 11px;

      padding : 0;
      z-index : 20;

      }

      .listItem

      {

      padding: 1px;
      z-index: 20;

      background-color: white;
      }

      .highlightedLis tItem

      {

      color : black;
      FONT-WEIGHT: bold;
      background-color: #D7E4F3;

      padding : 1px;z-index : 20;
      }
      </style>
      ------------------------

      Thanks again,
      Manik

      Comment

      • Manikrag
        New Member
        • Jun 2009
        • 62

        #4
        Sorry I misunderstood it. No CSS for DIV tags, DIV tags are as following..


        <div style="float: left; border: px #c0c0c0; background-color:#cccccc; width:100%;">

        <div style="float: left;"></div>


        <div style="float: right; height: 60px; overflow: hidden; width: 360px;">
        <div style="float: right; height: 35px; padding: 2px 5px 10px 1px;"> </div>

        and goes on..

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          I'm think it has to do with the float styles.
          Between the top <div> and the rest of the content place the following

          <div sytle="clear:bo th"></div>


          This will make sure that the top <div> stays at the top and the ones below it say below it.

          Comment

          • Manikrag
            New Member
            • Jun 2009
            • 62

            #6
            Thanks Frinavale. It is fixed by removing "overflow: hidden;" from

            <div style="float: right; height: 60px; overflow: hidden; width: 360px;


            Thanks a lot!!
            Manik

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Hmm, guess I was wrong about the float styles.

              Glad you solved the problem :)

              -Frinny

              Comment

              • Manikrag
                New Member
                • Jun 2009
                • 62

                #8
                but it was close!! thanks so much for your support!!

                You rock!!

                Comment

                • RebeccaLouise
                  New Member
                  • Oct 2009
                  • 1

                  #9
                  Originally posted by Frinavale
                  Hmm, guess I was wrong about the float styles.

                  Glad you solved the problem :)

                  -Frinny
                  Hi,

                  Clearing floats didn't not have solved the original problem, But it solved mine.

                  Thanks :)

                  Bec.

                  Comment

                  • Manikrag
                    New Member
                    • Jun 2009
                    • 62

                    #10
                    Great it helped you too.

                    Comment

                    • Frinavale
                      Recognized Expert Expert
                      • Oct 2006
                      • 9749

                      #11
                      Originally posted by RebeccaLouise
                      Hi,

                      Clearing floats didn't not have solved the original problem, But it solved mine.

                      Thanks :)

                      Bec.
                      Well at least it helped someone :)

                      Normally with these kinds of problems it's always some css style setting that is the culprit of the problem.

                      Cheers!

                      -Frinny

                      Comment

                      Working...