Samsun asked 4 years ago

Mr Abu,

I have problem when use colum like this:
$col = array();
$col["title"] = "USD";
$col["name"] = "CONTRACT";
$col["search"] = false;
$col["editable"] = false;
$col["align"] = "right";
$col['formatter'] = "currency";
$col['formatoptions'] = array("thausendsSeparator"=>",", "decimalSeparator" => ".","prefix" => "$","decimalPlaces" => 2);
$cols[] = $col;

The colum will displya NaN.


1 Answers
Abu Ghufran answered 4 years ago

There seems to be a typo in thous "e" ndsSeparator. It should be 'a'
Also make sure the data of this cell is numeric, as it will try to append comma and dots.

Your Answer

7 + 2 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!