[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2973
  • Last Modified:

Infragistics UltraWebGrid - Loop through rows client side when grouped

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
ChrisMDrew
Asked:
ChrisMDrew
  • 3
1 Solution
 
ChrisMDrewAuthor Commented:
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
 
ChrisMDrewAuthor Commented:
Resolved - check for any column being grouped and if so loop through the row.rows propertyrather than rows.
0
 
ChrisMDrewAuthor Commented:
reolved via Infragistics forums eventually!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now