Override Formatter Default in GridView

(DBCreator) #1

In my config I have set the default Formatter setting, but I have an single column in my Index GridView that I would like to override the thousandSeparator to be ’ ’ instead of the default ‘,’, how can I achieve this?

This is my current view definition for the column in question

	'contentOptions' => ['class' => 'text-right'],
	'format'=>['decimal', 0],

(Johnson) #2

Hi there,

The syntax for format is right as per your code above.

You can refer the page


and some times based on your time zone you set the decimal separator may take effect!

(DBCreator) #3

Any chance you could give me a formal example on how I would implement it with my column code?