Tooltip on GridViewDataColumn.Header?

2 posts, 0 answers
  1. Scott
    Scott avatar
    42 posts
    Member since:
    Feb 2009

    Posted 22 Apr 2014 Link to this post

    Hi All,

    I'm trying to add a tooltip to my GridViewDataColumn's Header, but the tooltip never appears and I get no binding error. Can you tell me if this is the proper approach?

    Cheers,
    Scott

    Code below:

                    <telerik:GridViewDataColumn DataMemberBinding="{Binding SnmPerformance}" UniqueName="SnmPerformance"
                                                DataFormatString="n1" TextAlignment="Right" HeaderTextAlignment="Right"
                                                Width="80" IsFilterable="False" IsSortable="True" >

                        <telerik:GridViewDataColumn.Header>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" Text="SNM Performance" TextWrapping="Wrap"  ToolTipService.ToolTip="{Binding DataLastUpdatedText, Mode=OneWay}"  />
                                <telerik:RadButton Grid.Column="1" Click="btnSnmPerformanceColumnExpandClickHandler" Style="{StaticResource ColumnHeaderExpanderButtonStyle}" />
                            </Grid>
                        </telerik:GridViewDataColumn.Header>
                    </telerik:GridViewDataColumn>






  2. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 23 Apr 2014 Link to this post

    Hello Scott,

    Indeed, this is the correct approach. You can check the Add ToolTip for columns and headers help article for a reference. Please ensure that there are no BindingExpression errors in your application.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top