Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / How to display tooltip in a dropdownlist filled from a valuelist

How to display tooltip in a dropdownlist filled from a valuelist

New Discussion
Haithem Gharsalli
Haithem Gharsalli asked on Feb 2, 2016 11:13 AM

Hello guys,

I have an UltraGrid with several fields including one which is a DropDownList filled from a valueList.
The content is larger than the DropDownList’s width so I’d like to have a tooltip displaying the text when the mouse is over while I’m selecting a row in the DropDownList.
Actually, there is a default tooltip but it is activated when I choose a row and when I lost focus).

I do not know if I could solve the issue with the “Start Designer” or if I have to solve it with code, on events, …

Thank you for you help !

EDIT: If you want a screen about the issue, do not hesitate to ask me ! 🙂

Sign In to post a reply

Replies

  • 0
    Milko Venkov
    Milko Venkov answered on Jan 28, 2016 1:22 PM

    Hello Antony,

    Thank you for posting in our forum.

    If I understand you correctly you need to show a tooltip on each row of the drop down list. If this is your case, I think you would have to use a CreationFilter for this. But I’m not sure that will work for a ValueList. One easy solution would be to use an UltraDropDown or UltraCombo instead of a ValueList. The UltraDropDown is essentially like a grid, and each row has a ToolTipText property.

    Please let me know if you need any additional information.

    Thank you for using Infragistics Controls.

    • 0
      Haithem Gharsalli
      Haithem Gharsalli answered on Jan 28, 2016 2:08 PM

      Hello Milko,

      I’d like to thank you for the suggestions, you’re right this is exactly what I want.
      However, I can not manage to use IUIElementCreationFilter. It looks like this is what I need, but I do not know how to use it.
      I make my classe inherit of IUIElementCreationFilter and it makes me implement two methods AfterCreateChildElements and BeforeCreateChildElements.
      Would it be possible for you to help me with this ?

      • 0
        Ivaylo Petrov
        Ivaylo Petrov answered on Feb 2, 2016 11:13 AM

        Hi Antony,

        In order to familiarize yourself with IUIElementCreationFilter interface and its capabilities, please take a look at the following documentation page: 

        https://www.infragistics.com/help/winforms/win-draw-filter

        However, I created a sample application for you attached on the bottom of my post. Based on your requirements, a creation filter implementation didn’t seem to be required, because I didn’t use a ValueList, but UltraCombo instead. Consciously, I set each of UltraCombo’s items to display texts that has width significantly more the default column’s one. Now you can see displayed tool tip under each of UltraCombo’s items. Please let me know if that implementation matches your requirements or the approach of using ValueList and creation filter are still your first choice.

        DropDownListDisplayToolTip

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Haithem Gharsalli
Favorites
0
Replies
3
Created On
Feb 02, 2016
Last Post
10 years ago

Suggested Discussions

Tags

Created by

Created on

Feb 2, 2016 11:13 AM

Last activity on

Feb 24, 2026 9:52 AM