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:
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.