Dropdownlist Extender

Last post 02-29-2008 2:41 PM by fjkesslerii. 2 replies.

Sort Posts:

  • Dropdownlist Extender

    02-29-2008, 2:25 PM
    • Member
      point Member
    • fjkesslerii
    • Member since 02-29-2008, 2:15 PM
    • Posts 2

    I currently have a dropdownlist extender who's TargetControlID is an image and DropDownControlID is a panel. In the panel I have an image, textbox, and ImageButton. (I do realize that the extemder is for a list, but I decided to try something different.

    Everything works great except when I click the textbox to gain focus the Dropdown collapses. I understand this is done by design. What I am wondering is if there is a property, attribute, or some javascript I can add to keep the list expanded until the user clicks the image button. (I do have the imagebutton working fine, since that only requires a click)

    Here is my code:

    <asp:Panel ID="PanelsendToFriend" runat="server" Height="50px" HorizontalAlign="Right"

    Width="149px" style="display:none; visibility:hidden" BackColor="White">

    <img src="../../../../_ControlsLibrary/_UserControls/Products/Wishlist/Images/EnterEmail.jpg" /><br />

    <asp:TextBox ID="TextBoxSendEmail" runat="server" Width="146px" ></asp:TextBox>

    <asp:ImageButton ID="ImageButtonSend" runat="server" ImageUrl="~/_ControlsLibrary/_UserControls/Products/Wishlist/Images/Send.jpg" OnClick="ImageButtonSend_Click" />

    </asp:Panel>

    <cc1:DropDownExtender ID="DDE" runat="server" TargetControlID="ImageSendToFriend" DropDownControlID="PanelSendToFriend" DropArrowBackColor="Transparent" DropArrowImageUrl="Images/blank.gif" DropArrowWidth="0px" HighlightBackColor="white" HighlightBorderColor="Transparent" EnableViewState="false" >

    </cc1:DropDownExtender>

     Thanks in advance for any help.

    Frank

  • Re: Dropdownlist Extender

    02-29-2008, 2:34 PM
    Answer

    I think you'd be better off using the PopupControlExtender or the HoverMenuExtender (depending if you want it to respond to a click or a mouseover).

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
  • Re: Dropdownlist Extender

    02-29-2008, 2:41 PM
    • Member
      point Member
    • fjkesslerii
    • Member since 02-29-2008, 2:15 PM
    • Posts 2

    Thanks DisturbedBudda,

    I believe that is a better option now that I look at it. Not sure what I was thinking.

Page 1 of 1 (3 items)