Friday, October 18, 2013

How to set focus to TextBox once Telerik RadBusyIndicator stops?

Most of you have already used BusyIndicator control in your Silverlight or WPF application while communicating with server or processing a huge data. Sometime developers want to focus to a particular control like TextBox once the busyIndicator stops. I noticed in various forums that developers really suffer a lot focusing to a TextBox at the end of the processing and when the busy indication stops. Let's read the trick to resolve this. Problem Statement Let us first understand the problem statement, the solution is simple enough once you go thru this. Let us have a window with a search TextBox inside a Telerik RadBusyIndicator. When the user enter search key in the TextBox and hit search, it starts the BusyIndicator and gives a round trip to the server to search in the database. Once the service returns the data, you stop the BusyIndicator and want to place your cursor focused into the search TextBox. At a first glance, it is very easy. Isn't it? Just call the Focus()...

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.

This article is related to

Architect,Intermediate,Articles,Computer Tutorials, Telerik, RadControls,RadBusyIndicator