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

Disable keystrokes

4 Answers 93 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aeroth
Top achievements
Rank 1
Aeroth asked on 03 Apr 2012, 10:50 AM
Hi Telerik Support,

Is it possible to disable keystrokes when BusyIndicator.IsBusy is true? Thanks!

Regards,
Aeroth Lin

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 05 Apr 2012, 08:21 AM
Hi Aeroth,

When the RadBusyIndicator is busy, The controls that are set as a content of the RadBusyIndicator are disabled so their keystrokes are disabled. Is this what you are trying to achieve or you want to disable all keystrokes?

All the best,
Georgi
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Aeroth
Top achievements
Rank 1
answered on 05 Apr 2012, 11:16 AM
Hi Georgi,

Thanks for you quick response.

I want to disable all keystrokes, e.g.,
There is a TextBox on my page, users can input value and press enter to search the data they need.
When the page starts searching the background seems to be disabled(white background), but if you press the keyboard at the same time, the value of the TextBox changed.
My users input data by bar code reader and the data might be scanned twice so my page will search twice.

Regards,
Aeroth Lin
0
Georgi
Telerik team
answered on 06 Apr 2012, 03:09 PM
Hello Aeroth,

What you can do is bind the IsReadOnly property of the TextBox to the IsBusy property of the RadBusyIndicator. In this way  the users would be more informed that they should not start new search before the current one is still searching. I am sending you a simple project where you can see how I have implemented the described behavior .

Kind regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Aeroth
Top achievements
Rank 1
answered on 09 Apr 2012, 02:49 AM
Hi Georgi, 

It works, thanks for your great help.

Regards,
Aeroth Lin
Tags
BusyIndicator
Asked by
Aeroth
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Aeroth
Top achievements
Rank 1
Share this question
or