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
getCell & row index '0'
09/03/2009
08:29
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

Hello,

i've a problem with method getCell(rowIndex, colIndex) called on row at position '0'…

The method return “false” !!

I've installed last jqgrid 3.4.2 and jquery 1.3.2

Any idea ?

thanks

11/03/2009
01:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

In jqGrid versions to 3.4.x this row is reserved for the formatting (this is empty hidden row) . You should begin to work at rowindex 1 instead.In next major releas this is corrected.

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.

11/03/2009
04:03
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

Hi Tony,

but if i should begin to work at rowindex 1 ... i cannot retrieve first row at index '0' ?

Is it right or there'is a workaround for this version of jgrid ?

Thanks

12/03/2009
10:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You do not need it, since ity is empty hidden row.

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.

12/03/2009
10:57
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

Hi tony,

thanks for your response but my problem is that i can't retrieve first row of my grid ...

if i try to retrieve row at index '1' i obtain data of second row shown ...

thanks

12/03/2009
11:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Can you please tell me what you actually will do?

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.

12/03/2009
11:24
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

simply this...

in a grid with a column so defined:

...

 {name:'name', index:'name', width:150, sortable:true, editable:false, resizable:false,
                  edittype:"text",
                  editrules: {edithidden:false, required:true, number:false},
                  editoptions:{size:"30", maxlength:"50"}},

...

grid shown contains in first row and in column 'name' cell with value "cell A";

grid shown contains in second row and in column 'name' cell with value "cell B";

when i try to retrieve value of cell at first row showed ...

$('#'+gridId).getCell(0, 'name');

result returned is 'false'

but if i try:

$('#'+gridId).getCell(1, 'name');

result returned is 'cell B'

so ... how can i retrieve value at first row ?

thanks !!

12/03/2009
11:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

OK. Thanks - found a problem. Fixed. Will publish bug fix after some hours.

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.

12/03/2009
11:30
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello again,

Just to note - getCell uses rowid and not rowIndex (which is quite different)

REgards

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.

12/03/2009
11:58
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

ok, thanks !

Wink

have a good job

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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