Hi,
I am using following code to get all the rows (checkboxes) that have been selected by a user:
function GetSelectedRows() |
{ // get all the rows with the checkbox checked |
var strTickets = ""; |
var grid = window["<%= RadGrid1.ClientID %>"]; |
var masterTableView = grid.MasterTableView; |
for (var i=0; i<masterTableView.Rows.length; i++) |
{ |
var cell = masterTableView.GetCellByColumnUniqueName(masterTableView.Rows[i] , "TemplateEditColumn"); |
alert("cell=" + cell); |
var checkBox = cell.getElementsByTagName("INPUT")[0]; |
if (checkBox && checkBox.checked) |
{ |
var cellID = grid.MasterTableView.GetCellByColumnUniqueName(masterTableView.Rows[i], "TradeTicketID"); |
strTickets = strTickets + cellID.innerHTML + ","; |
} |
} |
return strTickets; |
} |
Everything works fine when there is no grouping, or if the grid is grouped by one column. But when I group by two columns, it doesn't work. It fails on alert("cell=" + cell) with "cell=undefined". Any ideas?
We are using RadGrid v2.0.50727, this project was developed last year.
Thank you,
Julia