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

RadMaskedTextbox overlapping the previous text

3 Answers 49 Views
Input
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 30 Nov 2010, 11:37 AM
Hi,
i am using RadMaskedTextBox,i am facing one issue ,please follow the following example.

I have set mask as Letter

i have entered "abc" first time

next time i put mouse point  at before  "a" letter  and trying enter letters "def",actually my Intention is enter total text as "defabc",but it is overlapping abc and enters "def"

please let me know is there any way to solve this issue,


3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Dec 2010, 01:40 PM
Hello Kumar,


Another way to accomplish same functionality is by using RadTextBox instead of RadMaskedTextBox.
Set the MaxLength to limit the letters in textbox.
In the OnKeyPress event, check for whether the typed letter is not integer or symbol- the documentation will help.


Hope this suggestion helps.


-Shinu.
0
Kumar
Top achievements
Rank 1
answered on 01 Dec 2010, 01:58 PM
Hi shinu,

Thank for Your Reply,
But my requirement is not to limit the characters(MAx Length) i want to write some text before the previous text

For ex:
first time i have enter 123,the textbox(RadMaskedTextBox) have 123 now,
second time i have enter 456 just before 1 by keeping mouse at before 1 i want to write 456123,but actually it is overriding the 123 and displaying 456 Only.

0
Maria Ilieva
Telerik team
answered on 02 Dec 2010, 04:08 PM
Hi Kumar,

The described behavior is expected for the RadMaxteTextBox control due to the input nature. For example if you have set masked with three numbers and three letters after that in your scenario it will not be able to move the numbers into the letters places. This is the default control behavior and it could not be overcome.


All the best,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Input
Asked by
Kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kumar
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or