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
Bug with delGridRow, object being treated as a string
04/01/2012
23:38
Avatar
dribbons
New Member
Members
Forum Posts: 1
Member Since:
04/01/2012
sp_UserOfflineSmall Offline

On line 8247 of the 4.3.1 non-min source, you split the postdata.

postdata = postdata.split(",");

for( var pk in postdata) {
    if(postdata.hasOwnProperty(pk)) {
        postdata[pk] = $.jgrid.stripPref($t.p.idPrefix, postdata[pk]);
    }
}

postd[idname] = postdata.join();

Now on line 8282, you try to split it again, this throws an error because the object cannot be split

var toarr = [];
toarr = postdata.split(",");

I hand patched in the code below and the error goes away and my code executes as expected. 

toarr = (typeof postdata == "string") ? postdata.split(",") : postdata;

-- Edit

Looks like this is a known issue, I'll use my patch until your patch, sorry for the dup

28/01/2012
22:31
Avatar
davgino
Member
Members
Forum Posts: 31
Member Since:
20/03/2010
sp_UserOfflineSmall Offline

This error occurs on site (http://trirand.com/blog/jqgrid.....qgrid.html) -> Live Data Manipulation -> Delete Row.....

31/01/2012
23:42
Avatar
A415Hz
Member
Members
Forum Posts: 12
Member Since:
20/10/2010
sp_UserOfflineSmall Offline

Yeah, when I press "delete", the modal popup does not go away even after the record is successfully deleted

I can also confirm that line 8282 is causing the issue

toarr = postdata.split(",");

error message from chrome inspect element console:

Uncaught TypeError: Object 2140 has no method 'split'

01/02/2012
09:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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:
44 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