Forum

November 2nd, 2014
A A A

Please consider registering
guest

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
Topic RSS
how to iterate over all rows and all cels
29/09/2009
04:43
keimpema
Member
Forum Posts: 3
Member Since:
18/09/2009
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
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7721
Member Since:
30/10/2007
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
uruguay
Member
Forum Posts: 20
Member Since:
19/09/2009
Offline

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

30/09/2009
20:19
uruguay
Member
Forum Posts: 20
Member Since:
19/09/2009
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:
69 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