<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
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.
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
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.
I'm working with v2.0.50727.
What version do I need to have the tooltip functionality.
Thanks,
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.
Is it possible to map multiple columns (images etc.) in the tool tip?
Any sample will be of great help.
Thanks,
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.
Thank you.
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.
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
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.
