Howdy...
I have a data grid where I've merged the first two cells, and have "3" rows extending from those merged cells. (see attached image)
I'm carrying extra data with each row to populate a form, so when we "edit" the row - I'm trying to iterate through the "3" rows collecting the data I want.
function updateDlg(rowIndex) {
for (x = rowIndex; x <= rowIndex + 2; x++) {
$('#dgAccounts').datagrid('selectRow', x);
var row = $('#dgAccounts').datagrid('getSelected');
var type = row.ThresholdTypeName;
if (row.isInitiator == 'Yes') {
$('#' + type + 'IsInitiator').combobox('setValue', '1');
$('#' + type + 'InitiatorDetail').slideDown();
$('#' + type + 'InitiatorThreshold').combobox('setValue', row.InitiatorThresholdId);
}
if (row.isApprover == 'Yes') {
$('#' + type + 'IsApprover').combobox('setValue', '1');
$('#' + type + 'ApproverDetail').slideDown();
$('#' + type + 'ApproverThreshold').combobox('setValue', row.ApproverThresholdId);
}
if (row.isReleaser == 'Yes') {
$('#' + type + 'Releaser').combobox('setValue', '1');
}
}
}
However, when I try to select rows "#2", and "#3", I only get the first row returned. Is there anyway to select the other two rows if the first cells are merged?