TextField mask

  1. #1

    TextField mask

    Hi,

    Is it possible to set a mask to a TextField that allows user to enter data only in a valid format?

    For example, I would like to have a TextField where users could enter hours and minutes (hh:mm format).

    In addition, is it possible that this mask was always visible in the TextField (in this case, 0:00 or __:__) like MaskEdit control form the Ajax Toolkit?

  2. #2

    RE: TextField mask

    Hi,

    As part of the UX project there is a <ux:InputTextMask> Plugin.


    Example


    <ux:InputTextMask runat="server" Mask="9999/X[0|1]X9/X[0|1|2|3]X9" />


    Geoffrey McGill
    Founder
  3. #3

    RE: TextField mask

    The UX project is part of the SVN repository, or you can get it from the following location, see

    http://code.google.com/p/coolite-ux-toolkit/


    Hope this helps.


    Geoffrey McGill
    Founder
  4. #4

    RE: TextField mask

    Hi again,

    I tried InputTextMask plugin and it fits ok all my needs...

    But still with my time validation expression, which will be the best mask to allow a 24 hour format? I would like to allow 23:59 or 9:30 format, but I don't know how to set an expression for more than one character, so I don't know how to set the hour side of the expression with one or to characters from 0 to 23...

    By the moment, I tried with this mask:

    <ux:InputTextMask runat="server" Mask="X[0|1|2]X9:X[0-5]X9" />
    Anyone knows some better solution?

  5. #5
    Hi,

    Does anyone know if InputTextMask is now compatible with Ext.NET v1.0 RC?

    Thanks,

    Dominik.

Similar Threads

  1. [CLOSED] TExtField mask
    By ViDom in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 03, 2012, 3:28 PM
  2. [CLOSED] Mask for a textfield
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 26, 2011, 6:02 PM
  3. TextField mask
    By flaviodamaia in forum 1.x Help
    Replies: 1
    Last Post: Jan 23, 2009, 1:15 PM
  4. Mask dateRenderer in TextField
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Jan 08, 2009, 8:57 AM
  5. Textfield with mask for Date ?
    By eliezer in forum 1.x Help
    Replies: 3
    Last Post: Nov 18, 2008, 5:52 PM

Posting Permissions