I'm uisng a javasrcipt to check if there are any selected rows in the radgrid
<script type="text/javascript" language="javascript">
function Confirm_ReAssign_RadGrid_AssignedChart() {
var grid = window['<%= RadGrid_AssignedChart.ClientID %>'];
if (grid.MasterTableView.SelectedRows.length > 0) {
var agree = confirm("Are you sure to ReAssign the selected record(s)?");
if (agree)
return true;
else
return false;
}
else {
alert("Please select atleast one record"); return false;
}
}
</script>
The grid is in the content page.
grid is showing null.
Plz help
<script type="text/javascript" language="javascript">
function Confirm_ReAssign_RadGrid_AssignedChart() {
var grid = window['<%= RadGrid_AssignedChart.ClientID %>'];
if (grid.MasterTableView.SelectedRows.length > 0) {
var agree = confirm("Are you sure to ReAssign the selected record(s)?");
if (agree)
return true;
else
return false;
}
else {
alert("Please select atleast one record"); return false;
}
}
</script>
The grid is in the content page.
grid is showing null.
Plz help