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
[jqGrid4.0]can't add row by Navigator's add button after first time
12/05/2011
13:33
Avatar
conanca
Member
Members
Forum Posts: 3
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

only add one row by the Navigator's add button.

when add the second row ,It's will be a js error,called "y[0] is undefined"

12/05/2011
13:37
Avatar
conanca
Member
Members
Forum Posts: 3
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

jqGrid 3.8.2 is OK

16/05/2011
19:39
Avatar
kobruleht
Member
Members
Forum Posts: 144
Member Since:
05/05/2011
sp_UserOfflineSmall Offline

In minimized jas file Error occurs at code

if





(y[0].type=="checkbox")

y length is 0



Stack trace is

Anonymous Function JScript
  each JScript
  each JScript
  C JScript
  Anonymous Function JScript
  each JScript
  each JScript
  editGridRow JScript
  jqGrid JScript
  Anonymous Function JScript
  handle JScript
  eventHandle JScript

Error occurs also if add dialog is closed by not adding row. Opening add dialog second time causes this error.

How to fix ?

08/06/2011
21:00
Avatar
TheMrTarget
New Member
Members
Forum Posts: 1
Member Since:
08/06/2011
sp_UserOfflineSmall Offline

It's still reproduced in 4.0 version.

To fix problem You should replace

if(fld && fld[0] !== null) { //on line 6585

to

if(fld && fld[0] !== null && fld[0] !== undefined) {

10/06/2011
13:09
Avatar
nexenator
Member
Members
Forum Posts: 6
Member Since:
27/10/2010
sp_UserOfflineSmall Offline

In the minified version you can search for:

if((y=a("#"+a.jgrid.jqID(r),"#"+v))&&y[0]!==null){

and replace it with:

if((y=a("#"+a.jgrid.jqID(r),"#"+v))&&y[0]!==null&&y[0]!==undefined){

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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