Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






how to iterate over all rows and all cels

No Tags
UserPost

04:43
29/09/2009


keimpema

Member

posts 3

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

12:09
29/09/2009


tony

Sofia, Bulgaria

Moderator

posts 7383

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.

18:06
29/09/2009


uruguay

Member

posts 20

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

20:19
30/09/2009


uruguay

Member

posts 20

Post edited 01:20 – 01/10/2009 by uruguay


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   
 }

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

79 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10276

Posts: 30365

Membership:

There are 11039 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1210

markw65 – 179

kobruleht – 144

phicarre – 132

YamilBracho – 124

Renso – 118

Administrators: admin (60 Posts)

Moderators: tony (7383 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information