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

RadMaskedTextInput cut/copy/paste

1 Answer 153 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
B
Top achievements
Rank 2
B asked on 15 Jan 2014, 09:35 AM
Hi,

I have been getting messages that the RadMaskedTextBox has been deprecated for a long time, so I figured I would replace them with the new controls (like RadMaskedTextInput).

But I can't get RadMaskedTextInput to behave in a normal way regarding cut/copy/paste, the options I use are:

<telerik:RadMaskedTextInput x:Name="MainTextBox"

IsClearButtonVisible="False"

Mask=""

HorizontalAlignment="Stretch"

InputBehavior="Insert">


But I get unexpected behaviour with cut/copy/paste:
- When I try to copy/paste it overwrites the entire text
- When I press cut it shows a mask "____" were the selected characters where, eventhough I have Mask=""

What I was expecting is the same behaviour as RadMaskedTextBox:
- When I select a part of the text and press paste it should replace the selected text only
- When I put the cursor somewhere in the text and press paste it should put the copied text after the cursor
- After text is pasted it should put the cursor after the pasted text
- When I press cut it should remove the selected characters.

Is there a flag to make cut/copy/paste in RadMaskedTextInput behave like this?

Regards,
Bayram

P.S.

I didnt include a demo because I was able to reproduce the issue with:

http://demos.telerik.com/silverlight/#MaskedInput/FirstLook

The cut behaviour doesnt show as clearly because the Mask is a space in your demos, but you can for example cut some characters in the middle to see what I mean.

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 17 Jan 2014, 02:57 PM
Hi,

Unfortunately, you hit bugs in the RadMaskedTextInput which are already logged in our system. For your convenience I exposed public items (here and here) in our feedback portal so that you can follow and vote for them. As a small compensation for your valuable feedback, I updated your Telerik account accordingly.

Please accept our apology for the inconvenience caused.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
B
Top achievements
Rank 2
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or