Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Celledit problem
14/10/2008
13:11
Avatar
pat
Member
Members
Forum Posts: 9
Member Since:
14/10/2008
sp_UserOfflineSmall Offline

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.

14/10/2008
13:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

14/10/2008
16:07
Avatar
pat
Member
Members
Forum Posts: 9
Member Since:
14/10/2008
sp_UserOfflineSmall Offline

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

15/10/2008
00:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

15/10/2008
04:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

21/10/2008
00:25
Avatar
Chris
New Member
Members
Forum Posts: 1
Member Since:
21/10/2008
sp_UserOfflineSmall Offline

There is also a suble bug the GridNav function - what happens when iCol or iRow is set to zero? Wink

case 13:
  if ($t.p.iCol && $t.p.iRow) {
    $($t).editCell($t.p.iRow,$t.p.iCol,true);
  }

21/10/2008
00:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information