focus to radtextbox in radtooltip

2 posts, 0 answers
  1. beeta one
    beeta one avatar
    63 posts
    Member since:
    Aug 2012

    Posted 18 Jan 2013 Link to this post

    How can i set focus to radtextbox in radtooltip? 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Jan 2013 Link to this post

    Hi,

    Try the following code snippet to achieve your scenario.

    ASPX:
    <telerik:RadToolTip ID="RadToolTip1" OnClientShow="OnClientShow" runat="server" .......... >
        <telerik:RadTextBox ID="RadTextBox1" runat="server">
        </telerik:RadTextBox>
    </telerik:RadToolTip>

    JS:
    <script type="text/javascript">
        function OnClientShow() {
            var txtNote = $find("<%= RadTextBox1.ClientID %>");
            txtNote.focus();
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top