First problem: Change the color of the grid onClick.
onSelectRow: function() {
//HERE PUT THE DEFAULT COLOR (I PRESUME THAT IS WHITE)
//YOU SHOULD SELECT BY JQUERY ALL ROWS
$('table tr').find('.ui-state-highlight').css('background', '#ffffff');
$(this).find('.ui-state-highlight').css('background', '#80BFFF');
},
What you should do is something like that above, first put the old color in every row and then put the new color in the selected row.