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.
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.
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