Solved

Infragistics UltraWebGrid - Loop through rows client side when grouped

Posted on 2011-09-15
4
2,821 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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

685 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