Forum
08:23
23/08/2013
Hi all,
am facing a peculiar problem. i have a jqgrid with a date column. am doing form edit. the edit functionality works just fine. but when i try to add a new row, the popup dialog appears. the datepicker also appears, when i select the value and hit submit, the date column in the grid is showing Nan-Nan. i tried to use the same sample given in the website http://www.ok-soft-gmbh.com/jq.....diting.htm.
if i use the same includes given in that website, it works fine. but i use below one
<script src="~/Scripts/jquery/jquery-1.9.1.min.js"></script>
<script src="~/Scripts/jqgrid/js/src/jquery-ui-1.9.2.custom.min.js"></script>
<script src="~/Scripts/jqgrid/js/src/i18n/grid.locale-en.js"></script>
<script src="~/Scripts/jqgrid/js/src/jquery.jqGrid.js"></script>
my colmodel is
{ name: 'SignDate', index: 'SignDate', width: '200', jsonmap: 'cell.SignDate', editable: true, sorttype: 'date',
editable: true, formatter: 'date', formatoptions: {
srcformat: 'm-d-Y H:i:s',
newformat:'d-M-Y' },
editoptions: { dataInit: initDateEdit },
and initDateEdit has
initDateEdit = function(elem) {
setTimeout(function() {
$(elem).datepicker({
dateFormat: 'dd-M-yy',
what include am i missing? kindly help.
Thanks.
Most Users Ever Online: 715
Currently Online:
29 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66