Forum
13:11
14/10/2008
I'm getting a recurring error when using celledit.
Firebug stack trace:
jQuery(selector).jqm is not a function grid.common.js (line 58)
viewModal("#info_dialog", Object toTop=true overlay=10 modal=true drag=true)grid.common.js (line 58)
info_dialog("Error", "0 : <br/>error", "Close", "/js/themes/basic/images/")grid.common.js (line 94)
? in grid.celledit.js@189()grid.celledit.js (line 193)
? in jquery-1.2.6.min.js@29(Object, XMLHttpRequest readyState=4 status=0 multipart=false, "error", undefined)jquery-1....6.min.js (line 29)
? in jquery-1.2.6.min.js@28()
I have a page with multiple grids. Typical setup:
$.extend($.jgrid.defaults, {
imgpath: gridimagepath,
datatype: "xml",
viewrecords: true,
cellEdit: true,
cellsubmit: 'remote',
beforeSubmitCell: appendArgs
});
$("#gOS").jqGrid({
url: getURL('load', 'gOS'),
cellurl: getURL('edit', 'gOS'),
colNames: colNames2,
colModel: colModel2,
caption: "Outside Services - Year " + year,
afterEditCell: function (row, col, val, iRow, iCol) {
if (col == 'Contract') $("#gOS").setGridParam({ cellurl:getURL('edit2', 'gOS') });
}
});
var getURL = function (op, tab) { return 'HttpRequestPDS.aspx?op='+op+'&pid='+pid+'&yr='+year+'&tab='+tab; };
var appendArgs = function (rowid, name, val, iRow, iCol) { return {r:rowid, n:name, v:val}; };
The colNames & colModel are pretty standard - typicall col: {name:'Jan', sortable:false, width:45, align:'right', editable:true, editrules:{number:true} }
The edit actually works, but I get the above error about 30% of the time.
I also get an error popup every time for about a half second - I haven't been able to trap it in firebug. The body of the dialog is "0: error".
Both errors occur after the enter key is pressed. Despite the errors, the value is saved.
13:36
Moderators
30/10/2007
Hello,
You must be a sure that the grid.common.js, jqModal.js, jqDnR.js and at
last jqModal.css are loaded. Also download the last version. There are some
critical bugs corrections in cell edit.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
16:07
14/10/2008
Downloaded from http://trirand.com/jqgrid/jqGrid.zip. All modules included.
Previous problem fixed.
Now getting:
$.datepicker is undefined grid.celledit.js (line 265)
I actually have datepicker loaded, but I don't need it in my grid page. I can reproduce the problem by going into edit on a cell & then hitting the tab key.
Nesting the $.datepicker._hideDatepicker(); statement inside another try catch block takes care of my problem for now.
By the way, this is a fabulous grid. I appreciate all your effort. Keep up the good work.
->pat
00:43
Moderators
30/10/2007
Hello,
Thank you
This really make a error when you not include datepicker.
I will need to search for a nonerror way of checking the presistence
of UI datepicker.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
04:03
Moderators
30/10/2007
Hello,
Here is permanent fix
before the try statement write
if($.isFunction($.fn['datepicker'])) {
try {..} catch(e){…}
}
and of course the another try catch too.
But I need to investigate more the old and the new UI datepicker differences.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:59
Moderators
30/10/2007
Hello Chris,
This is true. Thanks. I will correct this. iRow can not be a zero, but iCol
can be.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
67 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