Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Infragistics UltraWebGrid - Loop through rows client side when grouped

Posted on 2011-09-15
4
2,807 Views
Last Modified: 2012-05-12
I have an UltraWebGrid with the first column set to be a check box.  I now need to get a list of all of the rows which have been checked again client side.  My code has started as L-

var  grid = igtbl_getGridById('<%= jobsGrid.ClientID %>');
var  rId = 0;
var jobs = "";
var row = grid.Rows.getRow(rId++);
while  (row) {
oCell = row.getCellFromKey("ijob_id");
if (oCell.getValue() == 1)
{
  if (jobs != "")
    jobs = jobs + "," + oCell.getValue("ijob_id");
  else
    jobs = oCell.getValue("ijob_id");
}

Works OK so long as the grid is not grouped but bombs if it is.  How can I do this while handling grouping?
0
Comment
Question by:ChrisMDrew
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 36547258
0
 

Author Comment

by:ChrisMDrew
ID: 36547738
Yes - unfortunately these all relate to the generic gridview - the Infragistics is a bit different with their own CSM.  I can find examples of looping through the rows as above however the control supports a 'grouping' which complicates matters.
0
 

Accepted Solution

by:
ChrisMDrew earned 0 total points
ID: 36576855
Resolved - check for any column being grouped and if so loop through the row.rows propertyrather than rows.
0
 

Author Closing Comment

by:ChrisMDrew
ID: 36597814
reolved via Infragistics forums eventually!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# Gridview 1 47
Problem with SelectList in .NET MVC application 1 27
MailAddress in vb 4 29
Easy filter aspnet 2 27
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question