SMART datagrid v.1 > Classes > GridStyles
The string conversion format which is used when display the value of TEXT field in data cell.
Internally, it calls Javascript String.replace, and specifies the necessary information for function call by the string value which is separated by semicolon(;) as the format below. The pattern and substitution string must be specified at least.
"Regular expression pattern:Substitution string:Regular flag(igm)"
// Resident registration number '0102031234567' => '010203-1234567'
column.styles().setTextFormat('(\\d{6})(\\d{7});$1-$2');
// Telephone number '01012345678' => '010-1234-5678'
column.styles().setTextFormat('(\\d{3})(\\d{3,4})(\\d{4})$;$1-$2-$3');
You can refer to most patterns in RegExLib site, etc.