Set a mask in a grid cell

Hello,
I have the need of putting a mask to a grid cell to control the format and what the user is writting in it.
For example, I need to put a mask to an ID number field with this (9999-9999-99999) letting the user to insert only numbers and in two groups of four digits and one of five digits.
I haven’t find any option to do this.
Can you help me?

there are standard cell formatting options but they only apply to numbers or dates -
docs.dhtmlx.com/doku.php?id=dhtm … ell_values

you could use a handler to detect that the user had edited the cell and then check that the new value matches your criteria:

grid.attachEvent(“onEditCell”, function(stage,rId,cInd,nValue,oValue){});

see docs.dhtmlx.com/doku.php?id=dhtm … oneditcell for full details

the professional version has an onKeyPress event if you want to try and prevent invalid characters while the user is typing