MaskedEdit Insert Characters Without Replacing Existing Text

Last post 05-01-2009 10:04 AM by soharadesign. 3 replies.

Sort Posts:

  • MaskedEdit Insert Characters Without Replacing Existing Text

    04-30-2009, 4:49 PM
    • Member
      2 point Member
    • testa
    • Member since 04-21-2009, 8:38 AM
    • Posts 11

     Is it possible to allow users to insert text into a MaskedEdit textbox without it replacing the existing text.

    So if someone wrote '1345', is it possible for them to insert '2' between the '1' and '3' without it replacing the '3' and forcing them to rewrite the full sequence again after the '1'.

    Thanks

  • Re: MaskedEdit Insert Characters Without Replacing Existing Text

    05-01-2009, 5:36 AM
    • Member
      299 point Member
    • soharadesign
    • Member since 04-29-2009, 4:46 AM
    • Hemel Hempstead, UK
    • Posts 69

    Doesn't that defeat the purpose of the masked textbox?

     

    What kind of data does this textbox represent? You might be better off just sticking to a regular expression validator by the sounds of it.

    Steve O'Hara

    Sohara Design
  • Re: MaskedEdit Insert Characters Without Replacing Existing Text

    05-01-2009, 8:47 AM
    • Member
      2 point Member
    • testa
    • Member since 04-21-2009, 8:38 AM
    • Posts 11

    The textbox only allows letters and numbers to be enetered and also shows some uneditable text at the front. The mask works fine and strips invalid characters when they paste into the textbox.

    I would just like them to be able to paste some text in, have the invalid characters stripped, then allow them to alter the text or insert some characters after the paste.

  • Re: MaskedEdit Insert Characters Without Replacing Existing Text

    05-01-2009, 10:04 AM
    Answer
    • Member
      299 point Member
    • soharadesign
    • Member since 04-29-2009, 4:46 AM
    • Hemel Hempstead, UK
    • Posts 69

     Hmm, I think you might be stuck on this I am afraid - the functionality just doesn't exist.

     

    There is already a request to get this in, you can track the progress here: http://ajaxcontroltoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=15147

    Steve O'Hara

    Sohara Design
Page 1 of 1 (4 items)