Tooltip modal window from RadTextBox Button

2 posts, 0 answers
  1. Marcio Nascimento
    Marcio Nascimento avatar
    54 posts
    Member since:
    Jul 2009

    Posted 28 Apr 2012 Link to this post

    Hi,

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

    Marcio Nascimento
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 02 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top