GridViewDataColumn ToolTip ShowDuration

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    2 posts
    Member since:
    Feb 2013

    Posted 09 Feb Link to this post

    I have a custom control as the ToolTipTemplate in a GridViewDataColumn, and that is displaying perfectly.

    However, when I set showduration with the ToolTipService or RadToolTipService ShowDuration property the duration stays at the default value.

    How can I change the ShowDuration?

     

    This is what my column XAML looks like.

    <telerik:GridViewDataColumn DataMemberBinding="{Binding PartName}"
                                  CellStyleSelector="{StaticResource DescriptionStyleSelector}"
                                                          Header="Description"
                                                          Width="450"
                                                          HeaderTextAlignment="Center"
                               TextAlignment="Center"
               ToolTipService.ShowDuration="60000"
               telerik:RadToolTipService.ShowDuration="60000">
                            <telerik:GridViewColumn.ToolTipTemplate>
                                <DataTemplate>
                                    <local:ActiveOperationsView TrackingNum="{Binding DataContext.TrackingNum, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewRow}}}" Margin="-8"  />
                                </DataTemplate>
                            </telerik:GridViewColumn.ToolTipTemplate>
                        </telerik:GridViewDataColumn>

     

  2. Stephen
    Stephen avatar
    2 posts
    Member since:
    Feb 2013

    Posted 09 Feb Link to this post

    Turns out the StyleSelector i had in code behind needed to be modified to include the tooltipservice.

    Once I did this below, it was fine.

    Setter tooltipDurationSetter = new Setter();
    tooltipDurationSetter.Property = ToolTipService.ShowDurationProperty;
    tooltipDurationSetter.Value = 60000;
    st.Setters.Add(tooltipDurationSetter);
Back to Top