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

GridViewDataColumn ToolTip ShowDuration

1 Answer 238 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 09 Feb 2021, 03:57 PM

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>

 

1 Answer, 1 is accepted

Sort by
0
Stephen
Top achievements
Rank 1
answered on 09 Feb 2021, 08:43 PM

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);
Tags
GridView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Stephen
Top achievements
Rank 1
Share this question
or