RadTextBox cursor not visible

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    50 posts
    Member since:
    Jun 2008

    Posted 23 Aug 2011 Link to this post

    Hi,
    I have a rad text box in a rad window. On page load i simply try to set focus on it using radajaxmanger. It runs successfully on all other browser except for firefox3.6. Focus gets onto the text box as soon as i click on the control. I tried so many ways to set focus on it(client side as well) but it didn't prove any fruitful result. Is it something related to browser behavior or i need to look onto controls. Please help asap.
    Thanks in advance.
  2. Johny
    Johny avatar
    80 posts
    Member since:
    Aug 2008

    Posted 26 Aug 2011 Link to this post

    Hi,

    I use this code and its works:

    <script type="text/javascript">
            function ClientShow(sender, args)
            {
                setTimeout(TBFocus, 10);
            }
            function TBFocus()
            {
                $find("<%= RadTextBox1.ClientID %>").focus();
            }
        </script>
        <telerik:RadWindow runat="server" ID="RadWindow1" VisibleOnPageLoad="true" OnClientShow="ClientShow">
            <ContentTemplate>
                <telerik:RadTextBox runat="server" ID="RadTextBox1">
                </telerik:RadTextBox>
            </ContentTemplate>
        </telerik:RadWindow>

    Thanks,
    Johny
Back to Top