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

[Solved] Dynamic ToolTip for GridView's Cell?

3 Answers 179 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.
Lee
Top achievements
Rank 1
Lee asked on 26 Oct 2010, 06:39 AM
Hi,Admin and Everyone

From the previous questions, I've found a method to add ToolTip for each GridCell. But i have a specific requirement, that is,
if the width of the column is not wide enough to display all content(may be the user resize one column), then display the Cell's content as 
ToolTip, otherwise, the tooltip would not be displayed.

another, if i add a tooltip by program code, like this: cell.SetValue(ToolTipService.ToolTipProperty,"MyTips");
how can i remove it by code?  cell.SetValue(ToolTipService.ToolTipProperty,null);  right?

thanks!!
From the previous questions, I've found a method to 
add ToolTips for each GridCell. 
But i have a specific requirement, 
that is, if the width of the column 
is not wide enough to display all contents(may be the user resize one column),
 then display the present Cell's content as ToolTip;
 otherwise, the ToolTip would not be displayed.

another,if i add a tool tip by program code, like
this 
cell.SetValue(ToolTipService.ToolTipProperty,"MyToolTip")
how can i remove it by code?

thanks 
From the previous questions, I've found a method to 
add ToolTips for each GridCell. 
But i have a specific req

3 Answers, 1 is accepted

Sort by
0
Lee
Top achievements
Rank 1
answered on 26 Oct 2010, 07:53 AM
waitting online!!
anybody can give me a help or an idea?
0
Maya
Telerik team
answered on 26 Oct 2010, 08:44 AM
Hello Lee,

Basically, you may try to apply conditional cell ToolTip selector as demonstrated in our demo. However, there is no straightforward and quite appropriate way for calculating if the value inside the cell is completely visible or not. Thus, I would recommend you to either set ToolTip for the whole column or just to apply selector that satisfies some conditions.

Best wishes,
Maya
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
0
Lee
Top achievements
Rank 1
answered on 26 Oct 2010, 09:00 AM
I get it
thanks a lot!
Tags
GridView
Asked by
Lee
Top achievements
Rank 1
Answers by
Lee
Top achievements
Rank 1
Maya
Telerik team
Share this question
or