Forum

November 2nd, 2014
A A A
Avatar

Please consider registering
guest

sp_LogInOut Log In

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 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
how to iterate over all rows and all cels
29/09/2009
04:43
Avatar
keimpema
Member
Forum Posts: 3
Member Since:
18/09/2009
sp_UserOfflineSmall Offline

How to iterate over all rows?

How to get rowid from row? Needed because getCell expects rowid.

I need to perform an action with all cells so I would like to do the following (pseudo code):

for row in grid.allrows

for cell in row.allcells

cellval = grid.getCell(row.rowid, cell.name)

How can I do that?

Thanks, Harmen

29/09/2009
12:09
Avatar
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Starting with the docs is a good idea. Look at available methods

Reagrds

Tony

For professional UI suites for PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site - trirand.net - by the very same guys that created jqGrid.
29/09/2009
18:06
Avatar
uruguay
Member
Forum Posts: 20
Member Since:
20/09/2009
sp_UserOfflineSmall Offline

I also need something like that, if you find the solution please post it

30/09/2009
20:19
Avatar
uruguay
Member
Forum Posts: 20
Member Since:
20/09/2009
sp_UserOfflineSmall Offline

Hi,

I found a way to do that

var lista = jQuery(”#myTable”).getDataIDs();
 for(i=0;i<lista.length;i++){
rowData=jQuery(”#myTable″).getRowData(lista[i]);
rowData.fieldName1

rowData.fieldName2   
 }

Forum Timezone: Europe/Sofia

Most Users Ever Online: 215

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, swathi

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information