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

Tooltip in a grid

6 Answers 244 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Julia Shah
Top achievements
Rank 1
Julia Shah asked on 11 Feb 2008, 07:58 PM
Hi,

I am looking for a code sample that would help me with this scenario:

I have a grid that shows a list of help desk tickets. I would like to show a tooltip with the ticket description on a mouse over the grid row. I don't want a callback to happen, but would like to load the tooptip contents on client side using a hidden column of the grid. Is it possible? If so, could you post a code example?

Thanks,
Julia

6 Answers, 1 is accepted

Sort by
0
Julia Shah
Top achievements
Rank 1
answered on 13 Feb 2008, 04:38 PM
If it's not possible to load the tooptip contents on client side, I would still appreciate a code sample for showing a tooltip on mouse over (over the grid row). Thanks.
0
Svetlina Anati
Telerik team
answered on 13 Feb 2008, 04:57 PM
Hi Julia,

I suggest you to use this demo for a base - it demonstrates a scenario which is similar to yours. Feel free to modify it in order to meet your requirements.



Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Julia Shah
Top achievements
Rank 1
answered on 13 Feb 2008, 05:12 PM
I've seen this demo, but unfortunately was not able to modify it to my needs. In that demo a static tooltip is opened, and I need to show info specific to a selected row. How do I determine which row is selected?
0
Tsvetie
Telerik team
answered on 15 Feb 2008, 02:56 PM
Hello Julia Shah,
You can find the row with javascript, but the approach is not very clear. Generally, you can just add the content between the opening and closing tags of the RadToolTip:
<telerik:RadToolTip ID="RadToolTip1" runat="server"   
    IsClientID="true" Width="200px" Height="200px" Title="Description">  
    This is the category - <%# DataBinder.Eval(Container, "DataItem.CategoryName") %> for product -  
     <%# DataBinder.Eval(Container, "DataItem.ProductName") %>.  
</telerik:RadToolTip> 

I have attached a simple page, demonstrating my idea. In case this is not what you are after, let us know, and we will guide you through the process of setting the content of the tooltip in this case with javascript. 

All the best,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael Von Foerster
Top achievements
Rank 1
answered on 03 Mar 2008, 01:42 PM
Hi, I have asked this question on the asp.net grid forum,
but maybe this is a more appropriate place (and maybe i'll get a response :)

It is really an extension of the above asked question:

Is it possible to mix the tooltip with the old grid and old rad ajax manager?
I tried and was getting strange namespace errors.

0
Tervel
Telerik team
answered on 04 Mar 2008, 08:09 AM
Hello Michael,

Yes, it is possible to use RadToolTip with RadGrid "Classic".
There is one problem with it - when the RadGrid's own built-in AJAX is used to update the grid content area. The AJAX methods do not "inform" the rest of the page (e.g. the tooltip manager) that partial update occured, so the tooltip manager does not "know" that it should re-tooltipify the grid.
However, the problem is easily worked around by setting the RadGrid EnableAJAX = "false", and wrapping the grid into an UpdatePanel.

In case you are not able to get your project running, please open a support ticket and send us your project. We will examine it and make corrections so that it compiles properly.


Regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Julia Shah
Top achievements
Rank 1
Answers by
Julia Shah
Top achievements
Rank 1
Svetlina Anati
Telerik team
Tsvetie
Telerik team
Michael Von Foerster
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or