Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    type:'date' with masked

    It is possible to put masked for type "date" (if you set useTextField) and choose the format, true, for example:
    dd/mm/yyyy or mm/dd/yy or ...
    dd/mm/yyyy hh:mm:ss or ... dd/mm/yyyy hh:mm etc.

    I am looking forward to your response.

    Thanks in advance.

    #2
    I am going to reply myself, to define a date with mask here you are an example:

    {type: 'date',name: 'com_fecha'
    ,useTextField:true
    ,textAlign:'left'
    ,textFieldProperties:{length:10, mask:'##-##-####',textBoxStyle:'formatoCelda'}
    }

    I hope that someone uses it.

    Comment


      #3
      Or just set useMask:true on the DateItem.

      Comment


        #4
        Hi David!

        When I use date with mask and I want to modify the value of the field, when I type new data, the old value is moving to the right, so If I only want to modify i.e. the days, like the data has been moved, I have to re-type the whole date.


        Is It possible to insert the new data when the mask option is used?

        Many thanks in advance.

        King regards Rafa.

        Comment


          #5
          Are you using a recent nightly or an older release?

          Comment


            #6
            Hi Davidj6,

            I have forgotten to put the information about my tests:

            OS Fedora 14
            Browsers: Chrome 8.0.552.224 & FF 3.6.12
            SmartClient_SC_SNAPSHOT-2010-11-14 (SmartClient_SC_SNAPSHOT-2010-11-14_LGPL.zip)

            I am going to test with another recent nightly version.

            Yesterday I tested SmartClient_SC_SNAPSHOT-2010-12-14 (SmartClient_SC_SNAPSHOT-2010-12-14_LGPL.zip), happens the same.

            Many thanks.

            King Regards.
            Last edited by rafa1970; 15 Dec 2010, 01:14.

            Comment


              #7
              Hi Davidj6,

              It works ok. I forgot to put the option "maskOverwriteMode:true".

              Thanks a lot for your support.

              King Regards.

              Comment

              Working...
              X