How do I change the visible time for Tooltips in RadViewGrid?
I'm using the _ToolTipTextNeeded event to set the text but the tip only remains visible for about 5 seconds.
I'm using the _ToolTipTextNeeded event to set the text but the tip only remains visible for about 5 seconds.
I saw reference to a RadToolTipManager in the KnowledgeBase, but that control does not appear in the Rad controls listed in my VB .NET Visual Studio.
Finn
7 Answers, 1 is accepted
0
Hi Finn,
At present there is no RadToolTipManager component in our suite, so probably you encountered an improper information in our KB (if so, please let us know so that we can fix it) or you looked at the control with the same name, part of the RadControls for ASP.NET AJAX suite.
What we do have is the RadToolTip class, which possesses all the required properties, but is marked internal. Every RadControl instance instantiates internally this class and uses it for displaying tooltips. What we can do is to provide public access to the property and the class so that you can tune the required properties, associated with the time delays. It can be accomplished for the one of the upcoming SP releases.
Please tell us whether this is what you require. I am looking forward to your reply.
Best wishes,
Dimitar Kapitanov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
At present there is no RadToolTipManager component in our suite, so probably you encountered an improper information in our KB (if so, please let us know so that we can fix it) or you looked at the control with the same name, part of the RadControls for ASP.NET AJAX suite.
What we do have is the RadToolTip class, which possesses all the required properties, but is marked internal. Every RadControl instance instantiates internally this class and uses it for displaying tooltips. What we can do is to provide public access to the property and the class so that you can tune the required properties, associated with the time delays. It can be accomplished for the one of the upcoming SP releases.
Please tell us whether this is what you require. I am looking forward to your reply.
Best wishes,
Dimitar Kapitanov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Finn
Top achievements
Rank 1
answered on 29 Jul 2008, 09:46 PM
You are right, what I looked at was for ASP.NET .
Yes, it would be real good to be able to change the timing properties, just like you can with MS ToolTips controls (AutoPopDelay, InitialDelay and ReshowDelay).
I use ToolTipText to display long text in RadGridView cells, and the text is often much longer than can be read in 5 seconds.
Finn
Yes, it would be real good to be able to change the timing properties, just like you can with MS ToolTips controls (AutoPopDelay, InitialDelay and ReshowDelay).
I use ToolTipText to display long text in RadGridView cells, and the text is often much longer than can be read in 5 seconds.
Finn
0
Hi Finn,
We will take your suggestion into account and will provide external access to our tooltip mechanism. Having this you will be able to control the timing properties.
Sincerely yours,
Dimitar Kapitanov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
We will take your suggestion into account and will provide external access to our tooltip mechanism. Having this you will be able to control the timing properties.
Sincerely yours,
Dimitar Kapitanov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dipak
Top achievements
Rank 1
answered on 24 Mar 2010, 03:35 PM
I also need to increase tooltip display time on RadGridView for Winform.
Is there any feature or workarround ?
Thanks
Dipak
Is there any feature or workarround ?
Thanks
Dipak
0
Hello Dipak,
Presently, the management of the tool tip display time is internal. Hence, there are not any public properties that expose this feature. We will consider improving this behavior in one of our next releases. In the meantime, you can use reflection to access the properties AutoPopDelay, InitialDelay and ReshowDelay. You should subscribe to ToolTipTextNeeded event of RadGridView and set the delay values as it is shown below:
If you have further questions feel free to write us back.
Regards,
Svett
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
Presently, the management of the tool tip display time is internal. Hence, there are not any public properties that expose this feature. We will consider improving this behavior in one of our next releases. In the meantime, you can use reflection to access the properties AutoPopDelay, InitialDelay and ReshowDelay. You should subscribe to ToolTipTextNeeded event of RadGridView and set the delay values as it is shown below:
private
void
radGridView_ToolTipTextNeeded(
object
sender, ToolTipTextNeededEventArgs e)
{
RadElement element = sender
as
RadElement;
if
(element ==
null
)
{
return
;
}
ComponentBehavior behavior = (element.ElementTree.ComponentTreeHandler
as
IComponentTreeHandler).Behavior;
PropertyInfo toolTipProperty =
typeof
(ComponentBehavior).GetProperty(
"ToolTip"
, BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetProperty);
object
toolTip = toolTipProperty.GetValue(behavior,
null
);
Type radToolTipType = toolTip.GetType();
PropertyInfo automaticProperty = radToolTipType.GetProperty(
"AutomaticDelay"
);
PropertyInfo autoPopDelayProperty = radToolTipType.GetProperty(
"AutoPopDelay"
);
PropertyInfo initialDelayProperty = radToolTipType.GetProperty(
"InitialDelay"
);
PropertyInfo reshowDelayProperty = radToolTipType.GetProperty(
"ReshowDelay"
);
int
automaticDelay = 60000000;
int
autoPopDelay = 60000000;
int
initialDelay = 60000000;
int
reshowDelay = 60000000;
automaticProperty.SetValue(toolTip, automaticDelay,
null
);
autoPopDelayProperty.SetValue(toolTip, autoPopDelay,
null
);
initialDelayProperty.SetValue(toolTip, initialDelay,
null
);
reshowDelayProperty.SetValue(toolTip, reshowDelay,
null
);
e.ToolTipText =
"This is tooltip text"
;
}
If you have further questions feel free to write us back.
Regards,
Svett
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items.
0
Michael
Top achievements
Rank 1
answered on 01 Feb 2012, 04:11 PM
Has this been updated/ has the enhancement been implemented?
I am using Telerik's WinForms RadGridView and I want to control the how long the tooltip is displayed.
I want to be able to set the property either in the design view or in the code behind. I would prefer, setting one property to creating an entire function for something that should be exposed.
Is there a reason this was not initially exposed to the developer?
In conclusion I have two questions.
Has this been implemented?
Is there a reason this is not being exposed?
I am using Telerik's WinForms RadGridView and I want to control the how long the tooltip is displayed.
I want to be able to set the property either in the design view or in the code behind. I would prefer, setting one property to creating an entire function for something that should be exposed.
Is there a reason this was not initially exposed to the developer?
In conclusion I have two questions.
Has this been implemented?
Is there a reason this is not being exposed?
0
Hello Michael,
Svett
the Telerik team
This feature has been implemented. You can access the tool tip directly and modify its delay properties as shown below:
private
void
myRadGridView1_ToolTipTextNeeded(
object
sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
ToolTip toolTip =
this
.myRadGridView1.ElementTree.ComponentTreeHandler.Behavior.ToolTip;
toolTip.AutoPopDelay = 2000;
e.ToolTipText =
"Hello"
;
}
I hope this helps. Let me know if you have additional questions.
Greetings,Svett
the Telerik team
SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).