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

Unable to set focus on a RadTextBox

3 Answers 107 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
dev
Top achievements
Rank 1
dev asked on 20 Aug 2012, 06:27 PM
Hii,
        I have a xxx.aspx page where i used a radsplitter. I divided the radSplitter into 2 radpanes. On left Radpane i am viewing an image and on right side i have some user controls where the user can give input and click submit. On code behind i am setting the focus on one of the Radtextbox when ever the page loads. I am able to get the focus on the radtextbox but, once the image loads on the radpane radtextbox is loosing its focus. So Please some one help me out with an appropriate solution??

Thans & Regards
Dev Jagarlamudi

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 23 Aug 2012, 02:27 PM
Hi Dev,

I tried to reproduce the problem with the provided information but to no avail. Could you please provide more details on the specific scenario?
  • Which versions of RadControls and .NET Framework are used in the application?
  • Under which browser and its version the problem occurs?

For your convenience I have attached my test project, could you please modify it to the point where the problem occurs and send it back?

The project includes two sample pages: in the first one the image is added directly to the RadPane as an <img> element and in the second one - as a value of the ContentUrl property of the RadSplitter. For my test I used the latest versions of RadControls for ASP.NET AJAX (2012.2.724) and tested the page under IE7, IE8, IE9 and the latest versions of Mozilla and Google Chrome.

Greetings,
Veselina
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.
0
dev
Top achievements
Rank 1
answered on 23 Aug 2012, 06:18 PM
Hii Veselina,

    1. I am using RadControls for ASP.NET Ajax (2012.1.411.40) and .NET framework 4.0
    2. I am using IE9 as my default browser.

In my using OnLoad event for Radpane to display the image in a panel. As you said, i am setting the focus on a textbox in pageload event, its working fine. But, once radpane OnLoad event fires the textbox is loosing its focus. Even i tried to set the focus on the textbox after the logic that displays image in radpane in OnLoad_radpanes event but no use.

I also want to mention that i am using some update panels in the aspx page in order to avoid flickering. Do these updatepanels are causing me this problem ??

Thanks & Regards
Dev Jagarlamudi
0
Vessy
Telerik team
answered on 27 Aug 2012, 02:21 PM
Hi Dev,

If I understand the scenario correctly, you have an <asp:Panel> inside the left RadPane and you are adding an image to it in the OnLoad event of this pane. I tried to reproduce the issue with such a scenario, but to no avail.

Regarding to the update panels you are using - does the issue could be reproduced even if you remove them from the page?

You do not mention which elements are being updated with the update panels. Please, note that there are some specific things in updating a RadSplitter - you could find more information in here.

If this is not the issue - could you, please, prepare a sample fully runnable project reproducing the issue so we could examine and debug it locally?

Greetings,
Veselina
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
Splitter
Asked by
dev
Top achievements
Rank 1
Answers by
Vessy
Telerik team
dev
Top achievements
Rank 1
Share this question
or