How can I set the ROW style on the load and dont loose it on a row deselection? Or how can i put it on the row again in case of deselection?
Im trying to set it again in the RowDeselecting even and it not work, but if i use the recordclick it does. Why?
<ClientSideEvents ToolbarClick="onToolBarClick"
RowDataBound="rowDataBound"
QueryCellInfo="GridQueryCellInfoEvent"
RowSelecting="rowselecting" />
<script>
function rowDataBound(args) {
var date1 = args.data.StateName;
if (date1 == "Vencido")
args.row.css("backgroundColor", "#F3C3C3").css("color", "black");/*custom css applied to the row */
if (date1 == "Pagado")
args.row.css("backgroundColor", "#98FB98").css("color", "black");/*custom css applied to the row */
}
</script>