Hi
I have an editable datatable, one column has a “date” editor with the following settings
{"id":"warranty","header":"Warranty Expires","width":120,"editor":"date","format":"%Y-%n-%d","stringResult":"true"}
but I seem to be getting odd results. When editing an existing row, it works fine and I get a date as 2014-12-23, but if I add an new row with
var row_id = $$("asset_table").add({});
$$("asset_table").editRow(row_id);
The data format shows as “Tue Dec 23 2014”.
As an example, please see the screenshot below
Is this a bug, or am I doing something incorrect.
As a side note, when the editRow() is activated, the Date editor automatically pops-up, even if I’m not actually focused on that field.
Thanks