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

how to use AutoTooltipify dynamically

2 Answers 67 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
zuhair
Top achievements
Rank 1
zuhair asked on 28 Sep 2010, 11:49 AM
actually i have to trying show autotooltipify in radiobutton ,
but tooltip text will be show from DB
please help  out this issue. 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Sep 2010, 02:27 PM
Hello,


Access the control in code behind and set the ToolTip property after querying the DB.

mark-up:
<asp:RadioButton ID="RadioButton1" runat="server"/>
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Element"
            Position="BottomCenter" AutoTooltipify="true" ContentScrolling="Default" Width="150" EnableShadow="true" Height="10">
</telerik:RadToolTipManager>


code:
protected void Page_Load(object sender, EventArgs e)
{
    // query the DB and get the tooltip
    RadioButton1.ToolTip = "set from here";
}


-Shinu.
0
Svetlina Anati
Telerik team
answered on 01 Oct 2010, 09:32 AM
Hi guys,

 Another option is if the label is in a databound control's template (e.g ItemTemplate of grid) declarative databinding could be used by using code blocks for setting the ToolTip proeprty of the label.

Best wishes,
Svetlina
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
ToolTip
Asked by
zuhair
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or