Hi, I wanted to know if it's possible to get a nbsp or emsp in as suffix since the date is coming to close to another column string.
I tried the following :
$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d/m/Y',
"suffix"=> ' ');
This worked for a currency with euro but doesn't seem to work with a nbsp.. Or isn't this possible to realize or has to be done as prefix on the adjacent column?
You can put a blank space before newformat string. ' d/m/Y'
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>' d/m/Y');
Doesn't seem to work, no matter how many blank spaces I try to set before or after the newformat.
That's the problem I'm facing when people are printing :
I can't tell exactly what you are doing, but this code results in following image.
$col = array();
$col["title"] = "Date";
$col["name"] = "invdate";
$col["width"] = "150";
$col["editable"] = true; // this column is editable
$col["editoptions"] = array("size"=>20);
$col["formatter"] = "date";
# opts array can have these options: http://api.jqueryui.com/datepicker/
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>' (*) d.m.Y', "opts" => array("changeYear" => false));
Result: http://tinyurl.com/nsrbzyx
Also, this demo is using full version.