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

Strange behaviour on ESC

5 Answers 92 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Vit100
Top achievements
Rank 1
Vit100 asked on 09 Jan 2012, 10:21 PM
Same code as here: http://www.telerik.com/community/forums/silverlight/maskedinput/bug-corrupted-memory.aspx
Another problem.
If you press Esc value of the field should be gone.. nope.. look at this...
if you switch to another TAB esc doesn't work any more.
Look at this video: https://skydrive.live.com/redir.aspx?cid=17feeb61afe2dbeb&resid=17FEEB61AFE2DBEB!14875&parid=17FEEB61AFE2DBEB!14837&authkey=!ANYZN_vggUiPVHg

5 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 12 Jan 2012, 05:05 PM
Hi Vitaliy,

Unfortunately I wasn't able to reproduce this issue. When I test your solution - hitting Esc adds symbols in the MaskedTextInput control. Should I modify somehow the project that you sent in the other thread to reproduce this behavior?

Also, can you tell me what are the culture settings on the computer where this issue is reproduced? We'll appreciate any additional information that can help us reproduce the issue locally as this will allow us to further investigate the case.

Greetings,
Tina Stancheva
the Telerik team

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

0
Vit100
Top achievements
Rank 1
answered on 12 Jan 2012, 05:37 PM
Hi Tina,
Video and code match each other - u should not modify anything... Video shows all details..

I did test in IE. Language: en-us

Step by step instruction:
1. Load inputTestPage.html
2. tabItem1 opened. type anything in field Search/Filter.
3. Press Esc. Text gone. Repeat few times. to see that Esc removes last types text.
4. Type anything in edit box on first tabItem. Don't press Esc.
5. Switch to tab2.
6. switch to tab1. you should see same text as you typed in p4.
7. make textbox active (click left mouse btn) on edit box.
8. Press Esc. Nothing happens. Esc doesn't delete text as it did before switching to Tab2. Sometimes Esc return previous text (couple changes before)..
0
Accepted
Tina Stancheva
Telerik team
answered on 17 Jan 2012, 01:45 PM
Hello Vitaliy,

I am sorry for the misunderstanding, I was testing the issue with the latest release and this is why i wasn't able to reproduce it. But as I remembered that you had to revert back to 2011.0419.1040 I realized what is the issue you describe.

Actually the behavior you observed is the expected behavior of the control when the Esc button is pressed. In the 2011.0419.1040 version of the RadMaskedInput controls we had a functionality that allows the controls to revert back to a previous value. Basically that means that hitting Esc shouldn't clear the value but set it back to the last value before the edit started. The feature was implemented so that when the RadMaskedTextInput is focused, its current value is remembered and when you start changing this value you'll have the ability to bring it back using the Esc key.

In your case when you first focus the MaskedTextInput on the first tab, its initial value is null and this is why hitting Esc always clears the value as it sets it back to null. However when you switch over to the second tab and later return to the first, focusing the MaskedTextInput will save the current value of the control so no matter what you write in it, hitting Esc will set the value back to what was entered at the time the control got focused.

Basically in order to clear the value of the MaskedInput controls you'll need to use the Clear button functionality, the Delete and Backspace buttons or create your own logic for setting the value to null by handling the KeyDown event.

Also, with the latest releases we have removed the Esc button "revert value" functionality while integrating the MaskedInput controls with the RadGridView.

All the best,
Tina Stancheva
the Telerik team

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

0
Vit100
Top achievements
Rank 1
answered on 17 Jan 2012, 02:49 PM
Cool.
U see, in this case release notes history for controls would help -) (abt another thread abt doc)
Thank you Tina.

BTW, it was very strange requirement to return previous value on esc....None of controls in Microsoft world have such thing..
But don't worry - i sometimes do insane stuff too -)))
0
Tina Stancheva
Telerik team
answered on 19 Jan 2012, 05:04 PM
Hi Vitaliy,

I just wanted to let you know that we will add a release notes history for each RadControl in our documentation with the Q1 2011 release.

Thanks again for your feedback. it's highly appreciated.

Greetings,
Tina Stancheva
the Telerik team

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

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Vit100
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Vit100
Top achievements
Rank 1
Share this question
or