Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Loop through all selected rows in Virtualized igGrid
posted

Hi,

Could you please provide a code sample that would loop through all selected rows on a rowVirtualization enabled version 2017.2 igGrid and return the column value for a Column called 'UUID'? The grid has enableCheckBoxes set to true.

My code (included below) fails when attempting to access non-rendered rows. The only other reference I have found to this is at the following URL, but the answer isn't expanded on in any great detail and relates to an older version of the control.

https://www.infragistics.com/community/forums/f/ignite-ui-for-javascript/80275/virtualization-and-select-all-checkbox

Many Thanks.

var rowId;
var securities = new Array();

var rows = $("#SecurityGrid").igGridSelection("selectedRows");

$.each(rows, function (ix, el) {
rowId = el.element.attr("data-id");
var uuid = $("#SecurityGrid").igGrid("getCellValue", rowId, "UUID");
securities.push(uuid);
});