RadBusyIndicator is moving Keyboard focus to the main window

1 Answer 50 Views
BusyIndicator Buttons GridView
Abhinav
Top achievements
Rank 1
Abhinav asked on 11 Dec 2023, 10:14 AM | edited on 11 Dec 2023, 10:17 AM

I have a RadBusyIndicator and inside it I have several other controls; the structure is bit complex and there are several DB operations are performed in that and while performing that DB operations we are setting IsBusy property of RadBusyIndicator as per progress to true and false. But after invoking this property keyboard focus is shifted to the main window which is not the correct behavior. 

I want my focus on the current control from where I am calling some commands, and it is doing some DB operations.

I have gone through the below solution, but it is not much helpful in my case because the structure of my code is bit complex and I don't want BusyIndication invoked every five seconds as mentioned in this link - "how to restore the focus"

Any help regarding this is much appreciated.

Dimitar
Telerik team
commented on 12 Dec 2023, 09:36 AM

Hi Abhinav, 

Can you share your current implementation (XAML and C#)? It would be even better if you could create a small sample project that reproduces your scenario. This will allow us to properly investigate your case and provide a solution. 

I can see that you have started a trial which gives you access to our ticketing system as well. If you do not want to share the information here in the public forums you can submit a ticket which is a private thread. 

Thank you in advance for your patience and cooperation. I am looking forward to your reply.

 

Abhinav
Top achievements
Rank 1
commented on 13 Dec 2023, 06:47 AM | edited

Hi Dimitar,

Thanks for your reply!

PFA sample project, it is an example of what we are working on. In sample there are few buttons which are setting the IsBusy property of the BusyIndicator and after it is restored then focus is moving to the start of the control. 

I have even added a DataGrid which has a button in it and when you click on delete, it is removing the row and again focus is shifted to the start of the app.

Any help will be appreciated on this.

 

Thank you in advance,
Abhinav

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Dec 2023, 12:09 PM

Hi Abhinav,

I have attached an updated version of the product that shows how you can achieve this. 

Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
BusyIndicator Buttons GridView
Asked by
Abhinav
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or