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

Tooltip modal window from RadTextBox Button

1 Answer 63 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Marcio Nascimento
Top achievements
Rank 1
Marcio Nascimento asked on 28 Apr 2012, 06:37 PM
Hi,

What is the simple way to open a tooltip confirmation window from RadTextBox incorporated Button?
Thanks,

Marcio Nascimento

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 May 2012, 03:55 PM
Hello Marcio,

I am not sure I completely understand your question. If you want to show a tooltip related to a textbox on a click of a button I can suggest that you use its Client-side API (the show() method) and set its ShowEvent property to FromCode, e.g.:
<telerik:RadTextBox runat="server" ID="RadTextBox1"></telerik:RadTextBox>
<telerik:RadToolTip runat="server" ID="RadToolTip1" ShowEvent="FromCode" Text="Lorem Ipsum"
    TargetControlID="RadTextBox1" RelativeTo="Element">
</telerik:RadToolTip>
<asp:Button ID="Button1" Text="show the ToolTip" OnClientClick="showTheTip(); return false;" runat="server" />
<script type="text/javascript">
    function showTheTip()
    {
        $find("<%=RadToolTip1.ClientID %>").show();
    }
</script>

There are different ways to load content in this tooltip and they are explained in this help article. You can attach the needed functionality to the controls as you need in your scenario.

In case you need to confirm the click on the button I can suggest that you use the RadConfirm dialog box which is shown in this exact scenario in this online demo.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolTip
Asked by
Marcio Nascimento
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or