I have a RadGrid where i need to change the css style for a row for all selected items when a certain button is clicked (client-side)
The style for the row is originally set in ItemDataBound:
I want to change the cssclass for the row to "rgRow viewedEval" once a button is clicked
The button triggers the javascript below:
The style for the row is originally set in ItemDataBound:
If
dataItem("Printed").Text = "False" Then
e.Item.CssClass =
"rgRow unViewedEval"
End If
I want to change the cssclass for the row to "rgRow viewedEval" once a button is clicked
The button triggers the javascript below:
function
GetSelectedItems(theGrid) {
var grid = $find(theGrid);
if (grid) {
var MasterTable = grid.get_masterTableView();
var selectedRows = MasterTable.get_selectedItems();
for (var i = 0; i < selectedRows.length; i++) {
var row = selectedRows[i];
row.className =
'rgRow viewedEval';
}
}
}
How do I access the style for each row? Obviously "row.className = " is not it.