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

display tooltip on RadPanel

3 Answers 105 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Iron
Roman asked on 23 Aug 2019, 01:20 PM

Hi there

I'm trying to show a tooltip on a RadPanel. Normally I'm using the ToolTipTextNeeded event for every Telerik control I used before. But this seem not to work here. I also tried the ToolTipText property on RadPanel.PanelElement. I also set AutoToolTip to true, without any success. What I tried:

1.private void panFiles_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
2.{
3.    e.ToolTip.ToolTipTitle = "test1";
4.}

 

1.panFile1.ShowItemToolTips = true;
2.panFile1.PanelElement.AutoToolTip = true;
3.panFile1.PanelElement.ToolTipText = "test2";

 

1.panFile1.PanelElement.PanelFill.AutoToolTip = true;
2.panFile1.PanelElement.PanelFill.ToolTipText = "test";

 

However, the tooltip is still not showing up. I cannot find any information about it in the RadPanel documentation. Is this even possible for this control?

Best Regards,
Roman

3 Answers, 1 is accepted

Sort by
0
Roman
Top achievements
Rank 1
Iron
answered on 23 Aug 2019, 01:23 PM
Ups, sorry. I didn't copy the whole code for the ToolTipTextNeeded event. Here it is:

1.private void panFiles_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
2.{
3.    e.ToolTip.ToolTipTitle = "test1";
4.    e.ToolTipText = "Yay!";
5.}
0
Roman
Top achievements
Rank 1
Iron
answered on 23 Aug 2019, 02:12 PM
Oh man, I fixed it. ToolTipTextNeeded event is perfectly working here. My control was somehow set on "Enabled = false", that's why it didn't work. Everything's good now :)
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Aug 2019, 05:42 AM

Hello, Roman,  

I am glad that the problem you were facing is now resolved. Indeed, the tooltip won't be displayed if the control is disabled. It is normal behaviro since it won't handle mouse input in this case. 

If you need any further assistance please don't hesitate to contact me. 

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Panel
Asked by
Roman
Top achievements
Rank 1
Iron
Answers by
Roman
Top achievements
Rank 1
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or