This is a migrated thread and some comments may be shown as answers.

Expand DropDownList Item on MouseOver

2 Answers 138 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 28 May 2015, 07:26 PM

Is there a way to expand a dropdownlist item when the list is open and a user hovers their cursor over an item?  I have a RadDropDownList with some list items that have long text values that don't fit in the width of the dropdownlist.  Ideally, I'd like to make it so they can see the entire list item string when they hover over the list item.

 Thanks in advance for your help!

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 29 May 2015, 05:34 AM
Hi Matthew,

Thank you for writing.

Expanding an item is not supported, however, you could use a tooltip to show the whole text of the desired item. For the purpose you can use the VisualItemFormatting event:
void radDropDownList1_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
{
    args.VisualItem.ToolTipText = args.VisualItem.Text;
}

I hope that you will find this useful. Let us know should you have any other questions.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matthew
Top achievements
Rank 1
answered on 29 May 2015, 02:59 PM
This will suffice.  Thank you.
Tags
DropDownList
Asked by
Matthew
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or