Show tooltip when selecting element asp: DropDownList
I have an asp: DropDownList on a page that, due to the 1024x768 design standard, may truncate some text values ββin the dropdown (not enough, apparently, to reverse engineer the layout), so I need to display a hint of the selected value when the dropdown is selected (i.e. i.e. when the dropdown is displayed and the element hovers), preferably only when the text for that element is truncated.
Is this possible by default, javascript hack, or just my imagination?
source to share
Add a Title attribute to your list items with your tooltip information. This is not an existing item in intellisense, but it should work. This is happening on my system. Now I'm not really sure how to do this if you are DataBinding the dropdown to the data source. But if you are hard-coding in ASPX or in code then how can you do it.
<asp:DropDownList id="ddl1" runat="server">
<asp:ListItem Text="Display text" Value="1" Title="This is my tooltip"></asp:ListItem>
</asp:DropDownList>
source to share