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

ToolTip on GridViewDataColumn

11 Answers 467 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John Morris
Top achievements
Rank 1
John Morris asked on 07 Dec 2009, 05:40 PM
Hello, I'm trying to add a tooltip to a GridViewDataColumn without any luck using the following code:

<telerikGridView:GridViewDataColumn ToolTipService.ToolTip="{Binding Miscellaneous}" DataMemberBinding="{Binding Name, Mode=OneWay}" />

I get a parser error as if the Miscellaneous field doesn't exist.  I can bind to Miscellaneous in the DataMemberBinding so the data source seems fine.  Is this possible?  Ideally, I would like to bind the tooltip to multiple fields (i.e. Name + " | " + Miscellaneous).  Is this possible?

Thank you.

 

 


 

11 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Dec 2009, 07:23 AM
Hello,

 You can use ToolTipTemplate property to achieve your goal. Here is an example:

            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name, Mode=OneWay}">
                    <telerik:GridViewDataColumn.ToolTipTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Miscellaneous}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.ToolTipTemplate>

                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>


Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paresh Sen
Top achievements
Rank 1
answered on 08 Dec 2009, 11:47 AM
Hi,

I want to show some of the grid data on tooltip.
On trying to use the above shown example I am getting the below error:

Error 1 The property 'ToolTipTemplate' does not exist on the type 'GridViewDataColumn' in the XML namespace 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView'.

Any help will be highly appreciated.

Thanks,
Paresh
0
Vlad
Telerik team
answered on 08 Dec 2009, 11:53 AM
Hello,

Do you have our latest version?

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paresh Sen
Top achievements
Rank 1
answered on 08 Dec 2009, 12:21 PM
Hi,

I'm working with v2.0.50727.

What version do I need to have the tooltip functionality.

Thanks,
Paresh
0
Vlad
Telerik team
answered on 08 Dec 2009, 01:38 PM
Hello Paresh,

 This version is actually related to some of the framework assemblies - not ours. You will need for example Q3 2009 - 2009_3_1103.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paresh Sen
Top achievements
Rank 1
answered on 08 Dec 2009, 02:27 PM
Thanks for the response!

Is it possible to map multiple columns (images etc.) in the tool tip?

Any sample will be of great help.

Thanks,
Paresh
0
Vlad
Telerik team
answered on 08 Dec 2009, 02:37 PM
Hi Paresh,

 You can place anything in this template - even new grid.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
John Morris
Top achievements
Rank 1
answered on 08 Dec 2009, 04:33 PM
Thank you Vlad.  I don't receive an error but I also do not see the tooltip.  I made sure there is data in the field and even placed my own static text into the TextBlock's text field but still don't see the tooltip.  I've tried selecting the row and rolling over the item, just rolling over, and edit mode/rolling over but nothing.  Am I missing a property?

Thank you.
0
Vlad
Telerik team
answered on 11 Dec 2009, 02:06 PM
Hi,

 I've attached an example project.


Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bill Jindrich
Top achievements
Rank 1
answered on 27 Jan 2010, 08:02 PM
Hi Vlad,
While your sample works fine for me, MY application is having an issue with displaying a tooltip - here is the relevant XAML:
...

 

 

<Controls:GridViewDataColumn DataMemberBinding="{Binding origin, Converter={StaticResource originConverter}}" Header="" IsReadOnly="True" UniqueName="origin" TextAlignment="Center">

 

 

 

<Controls:GridViewDataColumn.ToolTipTemplate>

 

 

 

<DataTemplate>

 

 

 

<TextBlock Text="{Binding title}"/>

 

 

 

</DataTemplate>

 

 

 

</Controls:GridViewDataColumn.ToolTipTemplate>
...
The value that's displayed in the tooltip is always the value for the last row item, no matter which row I'm mousing over. Any ideas? These are the versions that I have:
   runtime version: v2.0.50727
   version: 2009.3.1103.1030

 

0
Pavel Pavlov
Telerik team
answered on 28 Jan 2010, 08:35 AM
Hi Bill Jindrich,

This was a known bug for this version , It was fixed soon after the release. I would recommend an upgrade to a later version.

Best wishes,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
John Morris
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Paresh Sen
Top achievements
Rank 1
John Morris
Top achievements
Rank 1
Bill Jindrich
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or