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

Tooltip cell delay

4 Answers 208 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 17 Apr 2013, 04:01 PM
Hello
I've created following tooltip for cell:
<telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" >
    <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding ID}" Foreground="Red" />
                <TextBlock Text=" - " />
                <TextBlock Text="{Binding Text}" Foreground="Blue" />
            </StackPanel>
        </DataTemplate>
    </telerik:GridViewColumn.ToolTipTemplate>
</telerik:GridViewDataColumn>
But I cannot now delay it in any way:

I tried ToolTipService InitialDelay for column and grid and delay between show and nothing is changing I tried to set it to 2 sec, so value should be 2000.

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 18 Apr 2013, 11:21 AM
Hello,

I have tested with the code:

<telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" ToolTipService.InitialShowDelay="5000">
...

With this code, the initial showing of the ToolTip was delayed the first time I pointed on the column. If I continue to move between the cells in the column, then the ToolTip is changed straight away. Is this the behavior you would like to have?

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 18 Apr 2013, 11:27 AM
I would like to have tooltip o be always delayed. So after move to next row/column it should be again delayed with the same time as initial delay.

P.S.
I tried
<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Name}"
                                                               Width="*" ToolTipService.InitialShowDelay="10000" >
                                       <telerik:GridViewDataColumn.ToolTipTemplate>
                                           <DataTemplate>
                                               <Border BorderThickness="1" Width="320" Height="240"
                                                       HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10"
                                                       BorderBrush="{StaticResource SelectedBorder}">
                                                   <Image Source="{Binding Path=ThumbnailImage}"
                                                          Stretch="Uniform" Width="320" Height="240" />
                                               </Border>
                                           </DataTemplate>
                                       </telerik:GridViewDataColumn.ToolTipTemplate>
                                   </telerik:GridViewDataColumn>
As you can see I've set 10000 as initial delay. In my understanding it should be 10 seconds? But nothing that is happeing. The tooltip (initial) is displayed after about 1,5 sec.
0
Dimitrina
Telerik team
answered on 18 Apr 2013, 01:24 PM
Hello,

I am afraid that this would not be possible (to show the delay for every cell). I have tried to do it with the MS DataGrid and the behavior was still the same.
  

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 25 Apr 2013, 12:16 PM
That's a pity, thank you for your help.
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Dimitrina
Telerik team
Marcin
Top achievements
Rank 1
Veteran
Share this question
or