Tooltip doesn't appear to be showing up

6 posts, 2 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 04 Mar 2013 Link to this post

    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>
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 05 Mar 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 05 Mar 2013 Link to this post

    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?
  5. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 06 Mar 2013 Link to this post

    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.

  6. Richard
    Richard avatar
    10 posts
    Member since:
    Dec 2014

    Posted 21 Jan 2015 in reply to Rossen Hristov Link to this post

    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
  7. Boris
    Admin
    Boris avatar
    276 posts

    Posted 22 Jan 2015 Link to this post

    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.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready