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

RadTextBox cursor not visible

1 Answer 71 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 23 Aug 2011, 03:01 PM
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.

1 Answer, 1 is accepted

Sort by
0
Johny
Top achievements
Rank 1
answered on 26 Aug 2011, 08:08 AM
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
Tags
Input
Asked by
Rahul
Top achievements
Rank 1
Answers by
Johny
Top achievements
Rank 1
Share this question
or