|
<script type="text/javascript">
……………………….
$("#Grid").on("click", function (e) { // use your grid id
var selected = $('.e-table > tbody').eq(1).find('tr').hasClass('highlight');
if (selected) {
$('.e-table > tbody').eq(1).find('tr').removeClass('highlight'); // remove previously selected row.
}
$(e.target).closest('tr').addClass('highlight');
});
</script>
<style type="text/css" class="cssStyles">
.highlight { background-color: lightgreen; }
………………….
</style>
|