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

Pop-Up Infos

1 Answer 118 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
bla
Top achievements
Rank 1
Veteran
bla asked on 19 Feb 2021, 10:49 AM

Hello,

is it possible to show pop-up infos (like in Windows everywhere) to your controls? A search doesn't Show ANY Information About that which surprises me extremely. Especially I want to show the complete entry of this RadDropDownList when it is too Long to show in the list.

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Feb 2021, 11:10 AM

Hello,

Telerik UI for WinForms suite and its controls offer tooltips and screentips which represents a small rectangular window that displays a brief description when the user hovers over control or an element. I would recommend you to have a look at the following articles which demonstrates how to use both of the popup windows:

https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/tooltips-and-screentips/tooltips

https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/tooltips-and-screentips/screen-tips 

As to the RadDropDownList you can show tooltips for the drop down items as well. Please refer to the following code snippet:

        public RadForm1()
        {
            InitializeComponent(); 
            this.radDropDownList1.ToolTipTextNeeded += radDropDownList1_ToolTipTextNeeded;
            this.radDropDownList1.VisualListItemFormatting += radDropDownList1_VisualListItemFormatting;
        }
        
        private void radDropDownList1_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
        {
            args.VisualItem.ToolTipText = args.VisualItem.Text;
        }

        private void radDropDownList1_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
        {
            RadTextBoxItem tb = sender as RadTextBoxItem;
            if (tb != null)
            {
                e.ToolTipText = tb.Text;
            }
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DropDownList
Asked by
bla
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or