RadMaskedTextbox overlapping the previous text

4 posts, 0 answers
  1. Kumar
    Kumar avatar
    46 posts
    Member since:
    Sep 2010

    Posted 30 Nov 2010 Link to this post

    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,

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Dec 2010 Link to this post

    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.

  3. Kumar
    Kumar avatar
    46 posts
    Member since:
    Sep 2010

    Posted 01 Dec 2010 Link to this post

    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.

  4. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 02 Dec 2010 Link to this post

    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.
Back to Top