Forum
20:58
05/05/2011
If row is deleted using call to server, exception
Object doen't support property or method split
occurs in delete complete handler in jquery.jqGrid.src.js file near line 8273
toarr = postdata.split(",");
postdata is already array parsed already near line 8239
postdata = postdata.split(",");
and thus it does not contain split method.
Replacing this line with
toarr = postdata;
fixes it.
How about fixing this ?
13:23
05/05/2011
I added push request for this issue. One line fix but after editing with visual studio formatting also was changed
https://github.com/kobruleht/jqGrid/commit/3bbb6d8f0285aec0cb45fd7b2e98b6cdccddc645
15:45
10/08/2009
I think that the origin of the described bug is the line 1542:
which modifys the postdata. The postdata variable will be used later not only the the line 1577
which you suggest to fix, but also in the line 1589
as the parameter of the afterComplete callback function. In the version 4.1.2 and earlier the postdata was unchanged. First in the version 4.2.0 (see here) the problem appears. It was in the long change.
So I suggest to replace the lines 1542-1548
for( var pk in postdata) {
if(postdata.hasOwnProperty(pk)) {
postdata[pk] = $.jgrid.stripPref($t.p.idPrefix, postdata[pk]);
}
}
postd[idname] = postdata.join();
to the following
for (j=0; j<pdArray.length; j++) {
pdArray[j] = $.jgrid.stripPref($t.p.idPrefix, postdata[j]);
}
postd[idname] = pdArray.join();
Best regards
Oleg
P.S. The modified version of jquery.jqGrid.src.js (for testing of the fix) you can get here.
15:10
05/05/2011
I tried
http://www.ok-soft-gmbh.com/jq.....-delete.js
using remote json data, row id is passed separately for every row like
jqGrid passes only first character from row id to Delete controller so it looks like it is not usable.
Most Users Ever Online: 715
Currently Online:
50 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