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

Customize tooltip on RadGridView

5 Answers 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
macky
Top achievements
Rank 1
macky asked on 25 Jul 2010, 10:00 PM
HI Telerik Staff,

            I'm using a RadGridView and need a customize tooltip on each row when the user hover there mouse.  RadialGauge will be on the tooltip (Simple Radial Gauge).  Each row on the grid has some numbers or data to supply the RadialGauge as a tooltip. So, the Radial Gauge should show the updated  info. on each row from the grid.

           How to do it?  Please help....


Thanks,
Mac

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jul 2010, 07:20 AM
Hello,

Why not use ToolTipTemplate or ToolTipTemplateSelector column properties to place desired element in the cells tooltips?

Regards,
Vlad
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
macky
Top achievements
Rank 1
answered on 26 Jul 2010, 08:24 PM
Hi,

         I tried this http://www.telerik.com/help/silverlight/gridview-how-to-create-row-tooltip.html. And this code (please check below)
      
void gridView_RowLoaded(object sender, RowLoadedEventArgs e)
{
  var row = e.Row
as GridViewRow;
  
if (row != null)
  {
     ToolTip toolTip =
new ToolTip()
     {
         Content = row.DataContext,        ------------> creates an error.
         ContentTemplate = (DataTemplate)
this.LayoutRoot.Resources["MyToolTip"]    ----------> creates an error.
     };
     ToolTipService.SetToolTip(row, toolTip);
  }
}

     My goal is to run the radial gauge as tool tip and just try this simple code if it works for me. But it fails.
     I'm still wondering on how to make it work.   I hope you can help.


Thanks,
Mac
0
Vlad
Telerik team
answered on 27 Jul 2010, 06:22 AM
Hi,

 Do you have resource called "MyToolTip"?

Best wishes,
Vlad
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
macky
Top achievements
Rank 1
answered on 27 Jul 2010, 02:48 PM
Hi,
  
       I follow the code from your sample: http://www.telerik.com/help/silverlight/gridview-how-to-create-row-tooltip.html

<
Grid.Resources>
   
<DataTemplate x:Key="MyToolTip">
       
<StackPanel Orientation="Horizontal">
           
<TextBlock Text="This is testing.." Foreground="Red" />
         
   </StackPanel>
   
</DataTemplate>
</
Grid.Resources>

 Please help...


Thanks,
Mac
0
Accepted
Vanya Pavlova
Telerik team
answered on 29 Jul 2010, 07:31 AM
Hi,

I've tried the code from our article however everything worked as expected. You can check the attached project. 

Regards,
Vanya Pavlova
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
Tags
General Discussions
Asked by
macky
Top achievements
Rank 1
Answers by
Vlad
Telerik team
macky
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or