^^Bump ^^
Try adding the html style attribute 'overflow:scroll;'
Dan,
Which contol should i add this to? becoz, i tried it on the label control with is the target control, and I tried it on the Table control which is the dropdown control.. and none of them worked..
Thanks for your earlier reply as well.
Saketh.
Hi Saketh,
I'm testing a ListBox, like the following sample, and worked fine:
<asp:UpdatePanel ID="upnlFont" runat="server">
<ContentTemplate>
<asp:Panel ID="pnlClickFonts" runat="server" Width="200px" BorderStyle="Solid" BorderWidth="1px">
<asp:Label ID="lblSelectedFont" runat="server" Width="200px" BorderStyle= "None" BorderWidth="0px">
</asp:Label>
</asp:Panel>
<asp:Panel ID="pnlDDFonts" runat="server" style="background-color:#ffffff; border:none 0px; width: 190px; display :none; visibility: hidden;">
<asp:ListBox runat="server" ID="lstFontes" AutoPostBack="true" OnSelectedIndexChanged="lstFontes_SelectedIndexChanged" CssClass="cbo" Width="200px" Height="100px" Style="border: solid 1px; position: fixed; left: 0px; top: 0px; visibility: inherit;">
</asp:ListBox>
</asp:Panel>
<ajaxtoolkit:DropDownExtender ID="DropDownExtender1" runat="server"
TargetControlID="pnlClickFonts"
DropDownControlID="pnlDDFonts"
DropArrowBackColor="Beige"
HighlightBackColor="Beige"
BehaviorID="DDETeste">
</ajaxtoolkit:DropDownExtender>
</ContentTemplate>
</asp:UpdatePanel
My problem is a bit different: inside a normal page, dropdownextender+listbox are workign fine, but when I try to insert them in a ModalPopupExtender, the "clickable" part of the dropdownextender goes to a different area, i.e., it doesn't stay near of the original dropdownextender area.
Did anyone have this problem too?
Regards,
Alexandre.
Hi Saketh,
You can set the Panel's css style. The Panel is associated with DropDownExtender. Here is the the sample.
<%@. Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<script runat="server"
</script
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="TextLabel" runat="server" Text="Select your favorite exotic ice-cream flavor"
Style="display: block; width: 300px; padding:2px; padding-right: 50px; font-family: Tahoma; font-size: 11px;" />
<asp:Panel ID="DropPanel" runat="server" CssClass="ContextMenuPanel"Style="display :none; visibility: hidden;height:100px; overflow:auto;">
<asp:LinkButton runat="server" ID="Option1" Text="Mocha Blast" CssClass="ContextMenuItem" /><br />
<asp:LinkButton runat="server" ID="Option2" Text="Java Cyclone" CssClass="ContextMenuItem"/><br />
<asp:LinkButton runat="server" ID="Option3" Text="Dry Fruit" CssClass="ContextMenuItem" /> <br />
1223<br />
1223<br />
1223<br />
1223<br />
1223<br />
1223<br />
1223<br />
1223<br />
</asp:Panel>
<ajaxToolkit:DropDownExtender runat="server" ID="DDE" BehaviorID="DDEBID"
TargetControlID="TextLabel" DropDownControlID="DropPanel"/>
</form>
</body>
</html>
I hope this help.
Best regards,
Jonathan
Jonathan,
you are the MAN!!
Thanks for your reply.. it worked..
Saketh.
<p> thanks a lot dan.caswell, i had a problem of how to add scrollbars for asp label. your code worked fine. THANK YOU </p>
No comments:
Post a Comment