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

Focus is not returned to control after IsBusy is turned off

3 Answers 217 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Geoff Hardy
Top achievements
Rank 1
Geoff Hardy asked on 25 Nov 2010, 06:25 PM
We have a RadGridView which is contained within a RadBusyIndicator. The RadBusyIndicator.IsBusy property is bound to the IsBusy property on our underlying ViewModel. In the RowEditEnded event of the RadGridView, we do a web service call to update some data and set IsBusy to true on our ViewModel, which activates the RadBusyIndicator, blocking the user from editing the grid while the web service call happens. When the web service call is complete, we set IsBusy to false on the ViewModel and the RadBusyIndicator stops showing itself.

The problem is that the focus is not returned to the RadGridView afterwards - it is not obvious what control actually has focus after the RadBusyIndicator animation is complete. Ideally it should return to the RadGridView since that had focus previously.

Is this by design or is this a bug? It seems like the obvious thing that you would want the RadBusyIndicator to do is to return focus to the previous control that had focus.

Thanks in advance,

Geoff

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 28 Nov 2010, 08:01 PM
Hi Geoff Hardy,

Thank you for contacting us.

Please, refer to the following forum thread - http://www.telerik.com/community/forums/silverlight/busy-indicator/two-probleme-with-busyindicator.aspx.

I hope this helps. Please do not hesitate to contact us if you require any further information. I will be glad to assist you further. 

Best wishes,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jason Maronge
Top achievements
Rank 1
answered on 18 Aug 2011, 11:17 PM
So how can this be done in code?  I have a form that contains the RadBusyIndicator and a bunch of text boxes.  I am implementing an autosave feature that when the LostFocus of the textboxes is executed I set the IsBusy to true and save the data.  The problem is if the user uses the TAB button to go to the next box the RadBusyIndicator shows up and when it goes away the next textbox does not get focus.  I have tried to call Focus() on the next textbox after I SubmitChanges  and set IsBusy to false, but still can't get the control I want to get focus.

I hope this makes sense.  Basically I want the TAB to take the user to the next control after the BusyIndicator disappears.

Thanks,

Jason
0
Ivo
Telerik team
answered on 24 Aug 2011, 08:16 AM
Hello Jason,

Into your scenario I would suggest you save the focused element when some of the textboxes lose focus. Using a DispatcherTimer you can focus it back after the RadBusyIndicator has disappeared. I have created sample example to demonstrate you how to do this.

Hope this helps.

Kind regards,
Ivo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Tags
BusyIndicator
Asked by
Geoff Hardy
Top achievements
Rank 1
Answers by
George
Telerik team
Jason Maronge
Top achievements
Rank 1
Ivo
Telerik team
Share this question
or