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

[Solved] Change column tooltip content during display

1 Answer 158 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
yongjie
Top achievements
Rank 1
yongjie asked on 20 Oct 2010, 09:11 PM

Hi. I need to assign tooltip to gridView Column. But the Short Description should be display first, after 5 sec, the full description will then bedisplayed.

How can I make it? Please let me know the modification on the DataTemplate. Thanks!

 

<grid:RadGridView>  
    <grid:RadGridView.Columns
        <grid:GridViewDataColumn Header="Description"  ShowDistinctFilters="False"  DataMemberBinding="{Binding ShortDescription}" 
ToolTipTemplate="{StaticResource DescriptionToolTipDataTemplate}" />
    </grid:RadGridView.Columns
</grid:RadGridView
  
(DataTemplates.xaml)
<DataTemplate x:Key="DescriptionToolTipDataTemplate"
    <TextBlock Text="{Binding Description}" /> 
</DataTemplate>

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 26 Oct 2010, 07:48 AM
Hi Yongjie,


I have prepared an example for you that uses a little bit different approach. Considering you requirement the better approach is to create a GridViewCell style and manipulate the tooltip using some animation. 

Please check the attached project and let me know if this works for you.

 
All the best,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
yongjie
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or