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

Tooltip doesn't appear to be showing up

5 Answers 501 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 04 Mar 2013, 10:22 PM
I'm trying to make a tooltip show up on a RadGridView. I'm grouping the data by the client number. Probably the issus is that I don't understand how the tooltip will work in the RadGridView when grouping. I thought that, for example, if the user passes the mouse over a cell for the client's first name, then it would show "First Name". Am I wrong about that?  Cutting out all but the relevant XAML, here's what I've got:

<telerik:RadGridView Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Left"
                     DataMember="ClientNumber" ItemsSource="{Binding}" AutoGenerateColumns="False"
                     IsReadOnly="True" ShowColumnHeaders="False" ShowGroupPanel="False"
                     IsFilteringAllowed="False" Name="grdSearchResults" AutoExpandGroups="True" FontSize="16"
                     >
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn UniqueName="ClientNumber" ToolTip="Client Number" />
    <telerik:GridViewDataColumn UniqueName="LastName" ToolTip="Last Name" />
    <telerik:GridViewDataColumn UniqueName="FirstNames" ToolTip="First Name"/>
    <telerik:GridViewDataColumn UniqueName="CaseNumber" ToolTip="Case Number"/>
    <telerik:GridViewDataColumn UniqueName="DateOfBirth" DataFormatString="{}{0:d}" ToolTip="DOB" />
    <telerik:GridViewDataColumn UniqueName="InterviewDate" DataFormatString="{}{0:d}" ToolTip="Interview Date" />
  </telerik:RadGridView.Columns>
    <!-- other stuff -->
 </telerik:RadGridView>

5 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 05 Mar 2013, 08:55 AM
Hi,

You will need to add some actual code in order to define a tooltip.

Have you seen this tutorial? Let me know if there are problems.

Kind regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rod
Top achievements
Rank 1
answered on 05 Mar 2013, 03:09 PM
I had not seen that tutorial, thank you for linking to it.

I've got a follow-up question for you, concerning the tutorial that you linked to and a training video done by John Keller (I think that is his name). In the training video John used UniqueName property of the GridViewDataColumn. In the tutorial you linked to, they use DataMemberBinding. Are they functionality the same?
0
Accepted
Rossen Hristov
Telerik team
answered on 06 Mar 2013, 08:47 AM
Hi,

UniqueName is a very old legacy property from the dawn of RadGridView 3-4 years ago. You should use DataMemberBinding, since we have plans to obsolete the UniqueName property soon.

Regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Richard
Top achievements
Rank 1
answered on 21 Jan 2015, 06:47 PM
Your link to the tutorial is broken. Where can I find the info? : http://docs.telerik.com/devtools/wpf/api/html/gridview-how-to-create-row-tooltip.htm

Thank you
0
Boris
Telerik team
answered on 22 Jan 2015, 08:09 AM
Hello Richard,

Here is the new link to the Add ToolTip for Columns and Headers documentation article. 

Regards,
Boris
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.

 
Tags
GridView
Asked by
Rod
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Rod
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Boris
Telerik team
Share this question
or