Expand DropDownList Item on MouseOver

3 posts, 1 answers
  1. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 28 May 2015 Link to this post

    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. Answer
    Stefan avatar
    2891 posts

    Posted 29 May 2015 Link to this post

    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.

    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
  3. DevCraft banner
  4. Matthew
    Matthew avatar
    18 posts
    Member since:
    Oct 2014

    Posted 29 May 2015 in reply to Stefan Link to this post

    This will suffice.  Thank you.
Back to Top