Hello,
Is possible conditonal format with combination fields? I need combine data of diferend fields for change background color of the row.
Thanks!
1 Answers
You can do it with following code.
I am also emailing you demo php file.
Regards,
PHP side…
$e["js_on_load_complete"] = "do_onload";
…
$grid->set_events($e);
HTML side …
<script>
function do_onload(ids)
{
if(ids.rows) jQuery.each(ids.rows,function(i){
if (this.gender.toLowerCase() == 'male' && this.company.indexOf('Bl') != -1)
{
jQuery('#list1 tr.jqgrow:eq('+i+')').css('background','inherit').css({'background-color':'#FBEC88', 'color':'green'});
}
});
}
</script>
Your Answer