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

Keep showing the tooltips in telerik's radgrid

4 Answers 392 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 26 Mar 2014, 08:28 AM
I have a radgrid that displays some (normal) tooltips for headers and cell content.Take for example the header tooltip for this column:
<telerik:GridBoundColumn  HeaderText="<%$ Resources:IFW_Global, FamilyName  %>" HeaderTooltip="<%$ Resources:IFW_Global, FamilyNameTtip  %>" UniqueName="column"  AllowFiltering="False" DataField="LastName"
</telerik:GridBoundColumn>

And a data cell tooltip, set in code behind:
Dim item As GridDataItem = CType(e.Item, GridDataItem)
item(
"DocumentTypeCode").ToolTip = "customdoctooltip"

The tooltips stays visible for only about 5 seconds on mouseover and then it dissapears. I want all the tooltips to remain visible onmouseover without dissapearing. How would I do this? I'm looking for a simple solution.

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 31 Mar 2014, 08:47 AM
Hello Bob,

I believe it will be very helpful if you go through the following sample:
https://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx?product=tooltip

In addition, I am attaching a sample with slightly different scenario.

Please give it a try and let me know if it helps you.


Regards,
Eyup
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Bob
Top achievements
Rank 1
answered on 02 Apr 2014, 12:04 PM
The sample seems very different (and overly complex) from what I'm trying to archieve. 

I have a simple tooltip text for headers and cells in a radgrid, like this:
<telerik:GridBoundColumn  HeaderText="header" HeaderTooltip="show this text forever on mouseover please?!" UniqueName="columnname" DataField="myData"
</telerik:GridBoundColumn>

So it's a pretty standard little text as tooltip, I was hoping i could do this without needing a RadToolTipManager and ajax...
0
Marin Bratanov
Telerik team
answered on 02 Apr 2014, 03:31 PM

Hello Bob,

If you use the standard browser tooltips, you cannot control how long they will stay open. It is the default behavior of the OS to hide them after some time (usually 3-5 seconds).

Thus, to keep them shown as long as you like, you will need to convert them to RadToolTips (you could use the RadToolTipManager's Autotooltipify feature to do that for the entire page: http://demos.telerik.com/aspnet-ajax/tooltip/examples/autotooltipify/defaultcs.aspx). This will let you set the AutoCloseDelay property to 0 for the manager, so the tooltips will stay open for extended periods of time. Note that there will still be actions that can hide them - showing another tooltip and if the mouse moves out of the target (this last one can be tackled by setting the HideEvent to ManualClose).


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Bob
Top achievements
Rank 1
answered on 03 Apr 2014, 09:24 AM
This works for me. Thank you.
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Bob
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or