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

Hitting escape resets input controls?

3 Answers 79 Views
Input
This is a migrated thread and some comments may be shown as answers.
Eric Skaggs
Top achievements
Rank 2
Eric Skaggs asked on 15 Jan 2009, 09:21 PM
I've got a page that has several input (RadTextBox, RadNumericTextBox, RadComboBox, and RadDatePicker) controls on it.  Everything's working fine, but we inadvertently found that if you press the Escape key twice while you still have the focus of one of the controls, they all reset.  I don't really anticipate this being a problem, but is there a way to avoid this?

Thanks,

Eric Skaggs

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Jan 2009, 09:07 AM
Hello Eric,

In the latest versions of RadNumericTextBox, RadDateInput and RadMaskedTextBox the issue is resolved by subscribing the to the form reset event and resetting the initial values to those controls. We can do the same for the other controls in the future.

Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eric Skaggs
Top achievements
Rank 2
answered on 16 Jan 2009, 12:27 PM
Hi Dimo,

I want to make sure I understand.  When I hit escape and the form resets, are you saying this is by design?  Also, you're planning on doing this for other controls in the future?  I would like the controls NOT to reset, if possible.  Is there some method I can override to prevent this?

Thank you,

Eric Skaggs
0
Accepted
Dimo
Telerik team
answered on 19 Jan 2009, 11:10 AM
Hi Eric,

Yes, the observed behavior is incorporated in Internet Explorer and is expected.

By the time we fix this for all our RadControls, you can prevent form resetting like this:

<form id="form1" runat="server" onreset="return false;">


Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Eric Skaggs
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Eric Skaggs
Top achievements
Rank 2
Share this question
or