Focus is not returned to control after IsBusy is turned off

4 posts, 0 answers
  1. Geoff Hardy
    Geoff Hardy avatar
    58 posts
    Member since:
    Feb 2010

    Posted 25 Nov 2010 Link to this post

    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
  2. George
    Admin
    George avatar
    1332 posts

    Posted 28 Nov 2010 Link to this post

    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
  3. DevCraft banner
  4. Jason Maronge
    Jason Maronge avatar
    322 posts
    Member since:
    Jan 2005

    Posted 18 Aug 2011 Link to this post

    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
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 24 Aug 2011 Link to this post

    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 >>
Back to Top