JavaScript inside Script Tag on your page.
function ValidateSelection() { var grid = document.getElementById(""); var Selected = 0; for (i = 1; i < grid.rows.length; i++) { if(grid.rows[i].getElementsByTagName("input")[0] != null && grid.rows[i].getElementsByTagName("input")[0].type == "radio" && grid.rows[i].getElementsByTagName("input")[0].checked) { Selected = 1; break; } } if(Selected==0) { alert('Please select any row to proceed.'); return false; } else { return true; } }Designer
0 comments:
Post a Comment