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

Tooltip on GridViewDataColumn.Header?

1 Answer 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 22 Apr 2014, 09:31 PM
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>






1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 23 Apr 2014, 05:49 AM
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.
 
Tags
GridView
Asked by
Scott
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or