I need a little help, I have created a grid that works well for the most part except when I edit the row and click save; the order date changes dramatically and I don't see the pattern to figure out how to fix it. I have changed the srcformat
and newformat
parameters, I have also tried a whole slew of different things all of which don't seem to work. Can someone take a look at my fiddle and tell me what is going on with that date?
In order to test the fiddle please choose a row and then click edit (pencil icon) then enter a 4 for quantity and some gibberish in the reason field, click save, look at the order date, it changes from the default to some random date. I am using the latest verion of free-jqgrid (4.12.1)
https://jsfiddle.net/y3llowjack3t/8zs1q7Lm/1/
{
name: 'OrderDate', index: 'OrderDate', width: 90, align: "center",
search: true, searchoptions: { sopt: ['eq', 'bw', 'bn', 'cn', 'nc', 'ew', 'en'] },
formatter: 'date', formatoptions: { newformat: 'm/d/Y' },
editable: true, editrules: { required: true, date: true },
editoptions: { dataInit: function (elem) { $(elem).datepicker(); } }
},
Thanks!