Forum

May 22nd, 2014
A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Minimum search word length is 4 characters - maximum search word length is 84 characters

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: 7679
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:
20/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:
20/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: thaiphong.pham
49 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1233

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11316

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10523

Posts: 31110

Newest Members: krish, jqGridForStruts, shrat, wheeliea, dontbannedme, duyquang

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

Administrators: admin: 61

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information