Announcement

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

    mask on a listgridfield ?

    Is it possible to put a mask on a column of a listgrid ?

    for example, I have a column named "phone # " and I want a mask like (###) ###-####

    #2
    Try calling ListGridField.setEditorType(..) passing a TextItem with mask "(###) ###-####"

    Comment


      #3
      Having a textitem with the required mask as the editor type works only when the grid is edited. Is there a way to show the value formatted with the mask by default (like in the form)?

      Currently, I have to use cellFormatter to format the value of the cell.

      Comment


        #4
        You can define formatters to use for all components centrally via SimpleType.

        Comment


          #5
          Is there ability to use mask with regular expression, my case is to define a mask for TextItem where value should be double value that might end with percentage symbol, so the textItem should accept the following scenarios:

          1- 1
          2- 11
          3- 111 and so on
          4- 1.
          5- 1.1111
          6- 1.11111 and so on
          7- All above cases with % symbol

          Appreciate your help,
          Mohammad

          Comment

          Working...
          X