Hi, i have a problem to update a column with date formatter. That column is set:
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’d/m/Y’);
But when i use :
var selr = jQuery(‘#lstAlumnos’).jqGrid(‘getGridParam’,’selrow’);
$(‘#lstAlumnos’).setRowData(selr, { ‘fechaegr’ : newfechaegr } ) ;
The column fechagr show data with the Y-m-d.
The var newfechaegr have format: d/m/Y.
Exists a way to set formatter dynamic or how i have a solution?
Best regards
Thanks!
2 Answers
I have a solution with:
$.jgrid.formatter.date.reformatAfterEdit = true;
$(‘#lstAlumnos’).setRowData(selr, { ‘fechaegr’ : newfechaegr } ) ;
Thanks
Thanks for updating.
It’s incorporated in latest build. May be you are using older version.
Your Answer