how to use AutoTooltipify dynamically

3 posts, 0 answers
  1. zuhair
    zuhair avatar
    1 posts
    Member since:
    Sep 2010

    Posted 28 Sep 2010 Link to this post

    actually i have to trying show autotooltipify in radiobutton ,
    but tooltip text will be show from DB
    please help  out this issue. 
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Sep 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 01 Oct 2010 Link to this post

    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
Back to Top