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_Related Related Topics sp_TopicIcon
Error on delGridRow call - Grid in local data mode
12/12/2011
21:10
Avatar
vitrest
New Member
Members
Forum Posts: 2
Member Since:
12/12/2011
sp_UserOfflineSmall Offline

Hi,

first I'd like to thank you all for your outstanding work!

Today, testing jqGrid 4.3.0 in a project I'm working on, I've found a problem deleting rows (delGridRow call) from grid (working in "local" mode), at line 8273 of jquery.jqGrid.js: 

 

toarr = postdata.split(",");

 

In my case, postdata is an array (1 element, containing a GUID - my record's PK) and this line returns this error:

Object does not support this property or method 'split'

Thanks in advance,

Vittorio

14/12/2011
12:09
Avatar
Vili
New Member
Members
Forum Posts: 1
Member Since:
14/12/2011
sp_UserOfflineSmall Offline

Another bug on the same topic. Upon deleting a row in local mode:

$('#grrid').jqGrid('delRowData', id);

grid.base.js:2314 Uncaught TypeError: Cannot read property 'id' of undefined

if($(ptr).length === 0 || ptr[0].className.indexOf( 'ui-state-disabled' ) > -1 || $(td,ts).closest("table.ui-jqgrid-btable")[0].id.replace("_frozen","") !== ts.id ) {
return this;
}

best regards, Vili

P.S.  amazing work with jqGrid, thx

14/12/2011
15:23
Avatar
yet
Member
Members
Forum Posts: 3
Member Since:
13/12/2011
sp_UserOfflineSmall Offline

vitrest said:

Hi,

first I'd like to thank you all for your outstanding work!

Today, testing jqGrid 4.3.0 in a project I'm working on, I've found a problem deleting rows (delGridRow call) from grid (working in "local" mode), at line 8273 of jquery.jqGrid.js: 

 

toarr = postdata.split(",");

 

In my case, postdata is an array (1 element, containing a GUID - my record's PK) and this line returns this error:

Object does not support this property or method 'split'

Thanks in advance,

Vittorio


I can confirm this issue.

15/12/2011
10:30
Avatar
yet
Member
Members
Forum Posts: 3
Member Since:
13/12/2011
sp_UserOfflineSmall Offline

The following patch in 4.3.0 around line 8273 fixes the problem for me:

if (typeof postdata  == "string")

   toarr = postdata.split(",");

else

    toarr = postdata;

15/12/2011
12:47
Avatar
vitrest
New Member
Members
Forum Posts: 2
Member Since:
12/12/2011
sp_UserOfflineSmall Offline

yet said:

The following patch in 4.3.0 around line 8273 fixes the problem for me:

if (typeof postdata  == "string")

   toarr = postdata.split(",");

else

    toarr = postdata;


Hi yet,

yes, I adopted a similar solution:

jqGrid v4.3.0-1 commit ge58d18f

grid.formedit.js, line 1577:

 

toarr = ($.isArray(postdata) ? postdata : postdata.split(",")); //original code: postdata.split(",");

19/03/2012
19:27
Avatar
nospherato
New Member
Members
Forum Posts: 1
Member Since:
19/03/2012
sp_UserOfflineSmall Offline

Vili said:

Another bug on the same topic. Upon deleting a row in local mode:

$('#grrid').jqGrid('delRowData', id);

grid.base.js:2314 Uncaught TypeError: Cannot read property 'id' of undefined

if($(ptr).length === 0 || ptr[0].className.indexOf( 'ui-state-disabled' ) > -1 || $(td,ts).closest("table.ui-jqgrid-btable")[0].id.replace("_frozen","") !== ts.id ) {
return this;
}

best regards, Vili

P.S.  amazing work with jqGrid, thx


i'm facing the same issue here, any recommendations?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
35 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