Hello,
I followed the example in this URL to obtain the values of selected rows in the client clientside:
http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html
This is my code:
getCellByColumnUniqueName gets me the values from cell.innerHTML, however the values contain the <span ..> element markup enclosing the value, which I don't want. Is there another way to get the values without having to parse out the <span> markup? I tried the following but it doesn't work:
// this doesn't work
// var dataItem = selectedDataItems[i];
// alert(dataItem.getDataKeyValue('Name'));
Thank you,
Alex
I followed the example in this URL to obtain the values of selected rows in the client clientside:
http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html
This is my code:
var masterTableView = $find("RadGrid1").get_masterTableView(); |
var selectedRows = masterTableView.get_selectedItems(); |
var count = selectedRows.length; |
for (var i = 0; i < count; i++) { |
var row = selectedRows[i]; |
var cell = masterTableView.getCellByColumnUniqueName(row, "Name"); |
getCellByColumnUniqueName gets me the values from cell.innerHTML, however the values contain the <span ..> element markup enclosing the value, which I don't want. Is there another way to get the values without having to parse out the <span> markup? I tried the following but it doesn't work:
// this doesn't work
// var dataItem = selectedDataItems[i];
// alert(dataItem.getDataKeyValue('Name'));
Thank you,
Alex