开发者

Giving tolltip to Drop Downlist box when it is populated

I want to give tooltip to dropdownlist box as like...

When I just click on the DropDownListBox then it populates the list of items. When I move on the on of item then color of that item开发者_JAVA百科 changes to blue I want to assign the tooltip for this particular item.

Because my text of listitem is too large which is greater than width of listbox.

Is there any event to capture the moved listitem?

Please tell me how this can be possible.


To do this, you can loop through the dropdown list items and add a title attribute to each ListItem (if you are using asp.net webforms):

    For Each listItem As ListItem In DropDownList.Items
        listItem.Attributes.Add("title", listItem.Text)
    Next
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜