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

Whenever there is an Autopostback event my focus on present control will be lost under AjaxPanel

2 Answers 16 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
gautham
Top achievements
Rank 1
gautham asked on 24 Oct 2011, 08:28 AM
Hello,

     I have placed my controls under AjaxPanel and having AjaxLoadingPanel which as been targeted by this AjaxPanel. Whenever there is an Autopostback event my focus on present control will be lost.

    Please help me  get-back focus to respective control under present scenario.

Regards,
Gautham

2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 25 Oct 2011, 01:29 PM
Hello gautham,

You could reset the focus during the event raised by the control during the AutoPostBack. You just need to call FocusControl method of the RadAjaxPanel and pass it the control you want to get the focus.

I hope that helps.
0
LMMC
Top achievements
Rank 1
answered on 24 Jan 2015, 05:34 PM
The problem is to get back the focus not to a specific control but to the control which has focus just before the AutoPostBack event
Tags
Ajax
Asked by
gautham
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
LMMC
Top achievements
Rank 1
Share this question
or